fix(common): also allow for templating in service selector
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 8.8.0
|
||||
version: 8.8.1
|
||||
|
||||
@@ -95,7 +95,9 @@ spec:
|
||||
{{- if and ( ne $svcType "ExternalName" ) ( ne $svcType "ExternalIP" )}}
|
||||
selector:
|
||||
{{- if $values.selector }}
|
||||
{{ toYaml $values.selector | indent 4 }}
|
||||
{{- with $values.selector }}
|
||||
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- include "common.labels.selectorLabels" . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user