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

Commit

Permalink
feat(chart): Add optional deployment labels value to charts (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
jweilhammer authored Aug 5, 2021
1 parent afcf7b8 commit 43eb046
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kubernetes-external-secrets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ The following table lists the configurable parameters of the `kubernetes-externa
| `serviceAccount.create` | Whether a new service account name should be created. | `true` |
| `serviceAccount.name` | Service account to be used. | automatically generated |
| `serviceAccount.annotations` | Annotations to be added to service account | `nil` |
| `deploymentLabels` | Additional labels to be added the deployment | `{}` |
| `podAnnotations` | Annotations to be added to pods | `{}` |
| `podLabels` | Additional labels to be added to pods | `{}` |
| `priorityClassName` | Priority class to be assigned to pods
Expand Down
3 changes: 3 additions & 0 deletions charts/kubernetes-external-secrets/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
helm.sh/chart: {{ include "kubernetes-external-secrets.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.deploymentLabels }}
{{- toYaml .Values.deploymentLabels | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
3 changes: 3 additions & 0 deletions charts/kubernetes-external-secrets/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# All label values must be strings
deploymentLabels: {}

podAnnotations: {}
podLabels: {}

Expand Down

0 comments on commit 43eb046

Please sign in to comment.