Skip to content

Commit

Permalink
feat: add labels values to chart app
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Oct 15, 2024
1 parent 2242f5d commit 08f6c94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/contrib/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ metadata:
labels:
component: {{ (or .Values.component .Chart.Name) | lower }}
application: {{ .Values.global.repositoryName }}
{{- if .Values.labels }}
{{- range $key, $val := .Values.labels }}
"{{ $key }}": "{{ $val }}"
{{- end }}
{{- end }}
name: {{ (or .Values.component .Chart.Name) | lower }}
namespace: {{ or .Values.namespace .Values.global.namespace }}
annotations:
Expand Down
1 change: 1 addition & 0 deletions plugins/contrib/charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ containerSecurityContext:
initContainers:
sidecars: []
annotations: {}
labels: {}

0 comments on commit 08f6c94

Please sign in to comment.