chore(argo-rollouts): add option to disable creation of notifications configmap (#2849)

* chore(argo-rollouts): add option to disable creation of notifications configmap

This allows for using the upstream notifications configmap from
https://github.com/argoproj/argo-rollouts/blob/master/manifests/notifications-install.yaml

Signed-off-by: Roland Kool <rkool@bol.com>

* chore: update changelog

Signed-off-by: Roland Kool <rkool@bol.com>

* chore: fix chart version bump

Signed-off-by: Roland Kool <rkool@bol.com>

---------

Signed-off-by: Roland Kool <rkool@bol.com>
Co-authored-by: Aikawa <yu.croco@gmail.com>
This commit is contained in:
Roland Kool 2024-07-29 09:25:24 +02:00 committed by GitHub
parent 89bc396b55
commit 87e6dd9b63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,24 @@
{{ if .Values.notifications.configmap.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: argo-rollouts-notification-configmap
namespace: {{ .Release.Namespace | quote }}
labels:
app.kubernetes.io/component: {{ .Values.controller.component }}
{{- include "argo-rollouts.labels" . | nindent 4 }}
data:
{{- with .Values.notifications.notifiers }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.notifications.templates }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.notifications.triggers }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.notifications.subscriptions }}
subscriptions: |
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}