mirror of
https://github.com/truenas/charts.git
synced 2026-02-03 02:23:49 +08:00
Allow specifying extra selector labels
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user