feat(argo-rollouts): Add notification secret and configmap (#1163)
* fixing the error on the argo rollouts controller needing the notifications configmap and rollout Signed-off-by: Ian Muge <ian.muge@ardoq.com> * bump chart version Signed-off-by: Ian Muge <ian.muge@ardoq.com> * updating changelog Signed-off-by: Ian Muge <ian.muge@ardoq.com> * fix structure to be simialr to argocd-notification as suggested Signed-off-by: Ian Muge <ian.muge@ardoq.com> * Bump Minor version as we are adding a new feature Signed-off-by: Ian Muge <ian.muge@ardoq.com> * Updated helm docs, all tests are green, locally Signed-off-by: Ian Muge <ian.muge@ardoq.com> * Apply changes from code review Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
dde043a055
commit
c8f0471bd0
5 changed files with 70 additions and 3 deletions
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argo-rollouts-notification-configmap
|
||||
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 }}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{{ if .Values.notifications.secret.create }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: argo-rollouts-notification-secret
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
{{- with .Values.notifications.secret.items }}
|
||||
{{- toYaml . | nindent 2 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue