diff --git a/library/common/2101.0.0/templates/lib/chart/_labels.tpl b/library/common/2101.0.0/templates/lib/chart/_labels.tpl index 7415a9daa0..f64aead636 100644 --- a/library/common/2101.0.0/templates/lib/chart/_labels.tpl +++ b/library/common/2101.0.0/templates/lib/chart/_labels.tpl @@ -16,4 +16,9 @@ Selector labels shared across objects. {{- define "common.labels.selectorLabels" -}} app.kubernetes.io/name: {{ include "common.names.name" . }} app.kubernetes.io/instance: {{ include "common.names.releaseName" . }} +{{ if hasKey .Values "extraSelectorLabels" }} +{{ range $selector := .Values.extraSelectorLabels }} +{{ printf "%s: %s" $selector.key $selector.value }} +{{ end }} +{{ end }} {{- end }}