Skip to content

Commit

Permalink
Merge pull request #142 from aandryashin/master
Browse files Browse the repository at this point in the history
Add service labels.
  • Loading branch information
vania-pooh authored May 20, 2022
2 parents 79ecc02 + 774d4e4 commit 76dabde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moon2/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.serviceLabels }}
labels:
{{- range $key, $value := .Values.serviceLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
selector:
app: {{ .Release.Name }}
Expand Down
5 changes: 5 additions & 0 deletions moon2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ serviceAccountAnnotations: {}
##
serviceAnnotations: {}

##
## Moon service labels.
##
serviceLabels: {}

##
## Moon deployment settings.
##
Expand Down

0 comments on commit 76dabde

Please sign in to comment.