feat(common): allow for custom selector labels on services. (#1374)

This commit is contained in:
Kjeld Schouten-Lebbing
2021-11-22 00:34:59 +01:00
committed by GitHub
parent 05791a8df5
commit f0ff577857
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.7.1
version: 8.8.0
@@ -94,8 +94,12 @@ spec:
{{- end }}
{{- if and ( ne $svcType "ExternalName" ) ( ne $svcType "ExternalIP" )}}
selector:
{{- if $values.selector }}
{{ toYaml $values.selector | indent 4 }}
{{- else }}
{{- include "common.labels.selectorLabels" . | nindent 4 }}
{{- end }}
{{- end }}
{{- if eq $svcType "ExternalIP" }}
---
apiVersion: v1
+3
View File
@@ -405,6 +405,9 @@ service:
# -- Override the name suffix that is used for this service
nameOverride:
# -- Override default selector
selector: {}
# -- Set the service type
# Options: Simple(Loadbalancer), LoadBalancer, ClusterIP, NodePort
type: ClusterIP