Skip to content

Commit

Permalink
Adding the option to add labels in load balancer service
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjocop committed Feb 26, 2024
1 parent c182453 commit 61f96ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/docker-mailserver/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
{{- with .Values.service.labels }}
{{ toYaml . | nindent 2 }}
{{- end }}
name: {{ template "dockermailserver.fullname" . }}
spec:
## If a load balancer is being used, ensure that the newer type of LB that passes along IP information is used
Expand Down
1 change: 1 addition & 0 deletions charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ service:
## If there is a Hostname associated with this site, add it here and it will be rendered in the documentation.
# hostName:
annotations: {}
labels: {}

# Note this is a dictionary and not a list so invidual keys can be overriden by --set or --value helm parameters
persistence:
Expand Down

0 comments on commit 61f96ae

Please sign in to comment.