Skip to content

Commit 49d1c85

Browse files
jonitichJonatan Redondo
and
Jonatan Redondo
authored
Add common labels that apply to all resources (#291)
* Add common labels that apply to all resources * Run make helm-docs * Run make helm-docs --------- Co-authored-by: Jonatan Redondo <[email protected]>
1 parent acce398 commit 49d1c85

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

chart/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ helm install my-sealed-secrets-web bakito/sealed-secrets-web --version 3.1.6
2424
| Key | Type | Default | Description |
2525
|-----|------|---------|-------------|
2626
| affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
27+
| commonLabels | object | `{}` | Optional labels to apply to all resources |
2728
| deployment.args | object | `{"defaultArgsEnabled":true}` | Default process arguments are used, while additional can be added too |
2829
| deployment.livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/_health","port":"http"}}` | Liveness Probes |
2930
| deployment.readinessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/_health","port":"http"}}` | Readiness Probes |

chart/templates/_helpers.tpl

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
4242
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4343
{{- end }}
4444
app.kubernetes.io/managed-by: {{ .Release.Service }}
45+
{{- with .Values.commonLabels }}
46+
{{ . | toYaml }}
47+
{{- end }}
4548
{{- end -}}
4649

4750
{{/*

chart/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,6 @@ tolerations: []
174174

175175
# -- Assign custom [affinity] rules to the deployment
176176
affinity: {}
177+
178+
# -- Optional labels to apply to all resources
179+
commonLabels: {}

0 commit comments

Comments
 (0)