feat: Support extraLabels for serviceAccount (#17088)

Signed-off-by: christianacca <christian.crowhurst@gmail.com>

Signed-off-by: Rafael Ríos Saavedra <rrios@vmware.com>
Co-authored-by: Rafael Ríos Saavedra <rrios@vmware.com>
This commit is contained in:
Christian Crowhurst
2023-06-16 09:06:46 +01:00
committed by GitHub
parent 6aa39d84cb
commit 9ef8a8eac9
4 changed files with 8 additions and 1 deletions

View File

@@ -21,4 +21,4 @@ maintainers:
name: aspnet-core
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/aspnet-core
version: 4.2.2
version: 4.3.1

View File

@@ -228,6 +228,7 @@ The command removes all the Kubernetes components associated with the chart and
| `serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
| `serviceAccount.name` | The name of the ServiceAccount to use. | `""` |
| `serviceAccount.annotations` | Additional custom annotations for the ServiceAccount | `{}` |
| `serviceAccount.extraLabels` | Additional labels for the ServiceAccount | `{}` |
| `serviceAccount.automountServiceAccountToken` | Automount service account token | `true` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@@ -8,6 +8,9 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.serviceAccount.extraLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.serviceAccount.extraLabels "context" $) | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.serviceAccount.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.serviceAccount.annotations "context" $) | nindent 4 }}

View File

@@ -721,6 +721,9 @@ serviceAccount:
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
##
annotations: {}
## @param serviceAccount.extraLabels Additional labels for the ServiceAccount
##
extraLabels: {}
## @param serviceAccount.automountServiceAccountToken Automount service account token
##
automountServiceAccountToken: true