Skip to content

Commit 99e99ec

Browse files
authored
Merge pull request #131 from laverya/laverya-add-service-labels
add the ability to specify labels for the registry service
2 parents 5dccc4e + 680310d commit 99e99ec

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ metadata:
88
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
99
release: {{ .Release.Name }}
1010
heritage: {{ .Release.Service }}
11+
{{- if .Values.service.labels }}
12+
{{ toYaml .Values.service.labels | indent 4 }}
13+
{{- end }}
1114
{{- if .Values.service.annotations }}
1215
annotations:
1316
{{ toYaml .Values.service.annotations | indent 4 }}

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ service:
3737
# loadBalancerSourceRanges:
3838
annotations: {}
3939
# foo.io/bar: "true"
40+
labels: {}
41+
# foo.io/baz: "false"
4042
ingress:
4143
enabled: false
4244
className: nginx

0 commit comments

Comments
 (0)