Skip to content

Commit 95c4ef4

Browse files
committed
Add support for extra labels in Alertmanager ingress
Signed-off-by: jiaychen <jiayu.chen@camptocamp.com>
1 parent 65b61ef commit 95c4ef4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

charts/alertmanager/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ metadata:
77
name: {{ $fullName }}
88
labels:
99
{{- include "alertmanager.labels" . | nindent 4 }}
10+
{{- if .Values.ingress.labels }}
11+
{{ toYaml .Values.ingress.labels | indent 4 }}
12+
{{- end }}
1013
{{- with .Values.ingress.annotations }}
1114
annotations:
1215
{{- toYaml . | nindent 4 }}

charts/alertmanager/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ servicePerReplica:
144144
ingress:
145145
enabled: false
146146
className: ""
147+
labels: {}
147148
annotations: {}
148149
# kubernetes.io/ingress.class: nginx
149150
# kubernetes.io/tls-acme: "true"

0 commit comments

Comments
 (0)