diff --git a/plugins/contrib/charts/app/templates/deployment.yaml b/plugins/contrib/charts/app/templates/deployment.yaml index fee98706c..3c081ae38 100644 --- a/plugins/contrib/charts/app/templates/deployment.yaml +++ b/plugins/contrib/charts/app/templates/deployment.yaml @@ -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: diff --git a/plugins/contrib/charts/app/values.yaml b/plugins/contrib/charts/app/values.yaml index 39e9d1ffb..7f8a67b16 100644 --- a/plugins/contrib/charts/app/values.yaml +++ b/plugins/contrib/charts/app/values.yaml @@ -72,3 +72,4 @@ containerSecurityContext: initContainers: sidecars: [] annotations: {} +labels: {}