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:
Ian Muge 2022-03-14 22:12:41 +01:00 committed by GitHub
parent dde043a055
commit c8f0471bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 70 additions and 3 deletions

View file

@ -237,3 +237,34 @@ dashboard:
# - secretName: argorollouts-example-tls
# hosts:
# - argorollouts.example.com
notifications:
secret:
# -- Whether to create notifications secret
create: false
# -- Generic key:value pairs to be inserted into the notifications secret
items: {}
# slack-token:
# -- Configures notification services
notifiers: {}
# service.slack: |
# token: $slack-token
# -- Notification templates
templates: {}
# template.my-purple-template: |
# message: |
# Rollout {{.rollout.metadata.name}} has purple image
# slack:
# attachments: |
# [{
# "title": "{{ .rollout.metadata.name}}",
# "color": "#800080"
# }]
# -- The trigger defines the condition when the notification should be sent
triggers: {}
# trigger.on-purple: |
# - send: [my-purple-template]
# when: rollout.spec.template.spec.containers[0].image == 'argoproj/rollouts-demo:purple'