Skip to content

Commit

Permalink
Merge pull request #133 from aandryashin/master
Browse files Browse the repository at this point in the history
Add service labels.
  • Loading branch information
vania-pooh authored Apr 15, 2022
2 parents 5466598 + d32e49f commit d57ee9e
Show file tree
Hide file tree
Showing 2 changed files with 16 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 @@ -4,6 +4,12 @@ kind: Service
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceLabels }}
labels:
{{- range $key, $value := .Values.serviceLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
selector:
app: {{ .Release.Name }}
Expand Down
10 changes: 10 additions & 0 deletions moon2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ ingress:
##
openshift:

##
## Moon service account annotations.
##
serviceAccountAnnotations: {}

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

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

0 comments on commit d57ee9e

Please sign in to comment.