Skip to content

Commit 4b0fa9a

Browse files
committed
ingress annotations
1 parent af2fadc commit 4b0fa9a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
name: matrix-alertmanager-receiver
3-
version: 0.0.1
3+
version: 0.1.0
44
sources:
55
- https://github.com/metio/matrix-alertmanager-receiver

charts/matrix-alertmanager-receiver/templates/ingress.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ apiVersion: networking.k8s.io/v1
44
kind: Ingress
55
metadata:
66
name: matrix-alertmanager-receiver
7+
{{- if or .Values.ingress.annotations .Values.ingress.commonAnnotations }}
8+
{{ $annotations := merge .Values.ingress.annotations .Values.ingress.commonAnnotations }}
9+
annotations: {{ toYaml $annotations | nindent 4 }}
10+
{{- end }}
711
spec:
812
{{- if .Values.ingress.ingressClassName }}
913
ingressClassName: {{ .Values.ingress.ingressClassName }}

charts/matrix-alertmanager-receiver/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ affinity: {}
5959
ingress:
6060
enabled: false
6161
host: ""
62-
ingressClassName: ""
62+
commonAnnotations: {}
63+
annotations: {}
6364
tls: []
6465
#tls:
6566
# - hosts:

0 commit comments

Comments
 (0)