feat(common): allow for custom selector labels on services. (#1374)
This commit is contained in:
committed by
GitHub
parent
05791a8df5
commit
f0ff577857
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user