fix(common): also allow for templating in service selector

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-22 00:47:16 +01:00
parent 66dfb440a4
commit 81027079d0
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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 }}