feat(common): allow for custom selector labels on services. (#1374)
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 8.7.1
|
version: 8.8.0
|
||||||
|
|||||||
@@ -94,8 +94,12 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and ( ne $svcType "ExternalName" ) ( ne $svcType "ExternalIP" )}}
|
{{- if and ( ne $svcType "ExternalName" ) ( ne $svcType "ExternalIP" )}}
|
||||||
selector:
|
selector:
|
||||||
|
{{- if $values.selector }}
|
||||||
|
{{ toYaml $values.selector | indent 4 }}
|
||||||
|
{{- else }}
|
||||||
{{- include "common.labels.selectorLabels" . | nindent 4 }}
|
{{- include "common.labels.selectorLabels" . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if eq $svcType "ExternalIP" }}
|
{{- if eq $svcType "ExternalIP" }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
@@ -405,6 +405,9 @@ service:
|
|||||||
# -- Override the name suffix that is used for this service
|
# -- Override the name suffix that is used for this service
|
||||||
nameOverride:
|
nameOverride:
|
||||||
|
|
||||||
|
# -- Override default selector
|
||||||
|
selector: {}
|
||||||
|
|
||||||
# -- Set the service type
|
# -- Set the service type
|
||||||
# Options: Simple(Loadbalancer), LoadBalancer, ClusterIP, NodePort
|
# Options: Simple(Loadbalancer), LoadBalancer, ClusterIP, NodePort
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|||||||
Reference in New Issue
Block a user