Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 43eb046

Browse files
authored
feat(chart): Add optional deployment labels value to charts (#814)
1 parent afcf7b8 commit 43eb046

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

charts/kubernetes-external-secrets/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ The following table lists the configurable parameters of the `kubernetes-externa
7979
| `serviceAccount.create` | Whether a new service account name should be created. | `true` |
8080
| `serviceAccount.name` | Service account to be used. | automatically generated |
8181
| `serviceAccount.annotations` | Annotations to be added to service account | `nil` |
82+
| `deploymentLabels` | Additional labels to be added the deployment | `{}` |
8283
| `podAnnotations` | Annotations to be added to pods | `{}` |
8384
| `podLabels` | Additional labels to be added to pods | `{}` |
8485
| `priorityClassName` | Priority class to be assigned to pods

charts/kubernetes-external-secrets/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ metadata:
88
helm.sh/chart: {{ include "kubernetes-external-secrets.chart" . }}
99
app.kubernetes.io/instance: {{ .Release.Name }}
1010
app.kubernetes.io/managed-by: {{ .Release.Service }}
11+
{{- if .Values.deploymentLabels }}
12+
{{- toYaml .Values.deploymentLabels | nindent 4 }}
13+
{{- end }}
1114
spec:
1215
replicas: {{ .Values.replicaCount }}
1316
selector:

charts/kubernetes-external-secrets/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ imagePullSecrets: []
134134
nameOverride: ""
135135
fullnameOverride: ""
136136

137+
# All label values must be strings
138+
deploymentLabels: {}
139+
137140
podAnnotations: {}
138141
podLabels: {}
139142

0 commit comments

Comments
 (0)