Skip to content

Commit

Permalink
Merge pull request #131 from laverya/laverya-add-service-labels
Browse files Browse the repository at this point in the history
add the ability to specify labels for the registry service
  • Loading branch information
vyas-n committed Jun 3, 2024
2 parents 5dccc4e + 680310d commit 99e99ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.service.labels }}
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ service:
# loadBalancerSourceRanges:
annotations: {}
# foo.io/bar: "true"
labels: {}
# foo.io/baz: "false"
ingress:
enabled: false
className: nginx
Expand Down

0 comments on commit 99e99ec

Please sign in to comment.