Skip to content

Commit

Permalink
Add common labels that apply to all resources (#291)
Browse files Browse the repository at this point in the history
* Add common labels that apply to all resources

* Run make helm-docs

* Run make helm-docs

---------

Co-authored-by: Jonatan Redondo <[email protected]>
  • Loading branch information
jonitich and Jonatan Redondo authored Jan 29, 2025
1 parent acce398 commit 49d1c85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ helm install my-sealed-secrets-web bakito/sealed-secrets-web --version 3.1.6
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
| commonLabels | object | `{}` | Optional labels to apply to all resources |
| deployment.args | object | `{"defaultArgsEnabled":true}` | Default process arguments are used, while additional can be added too |
| deployment.livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/_health","port":"http"}}` | Liveness Probes |
| deployment.readinessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/_health","port":"http"}}` | Readiness Probes |
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.commonLabels }}
{{ . | toYaml }}
{{- end }}
{{- end -}}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,6 @@ tolerations: []

# -- Assign custom [affinity] rules to the deployment
affinity: {}

# -- Optional labels to apply to all resources
commonLabels: {}

0 comments on commit 49d1c85

Please sign in to comment.