feat(argo-rollouts): add annotations for notifications secret (#2777)
* feat(argo-rollouts): Most users of Argo-rollouts may store secrets on vault which allows to auto inject secrets directly to secrets object using annotations. Signed-off-by:Mohamed Ragab <mohamed.ragab@hellofresh.com> Signed-off-by: Mohamed Ragab <mohamed.ragab@hellofresh.com> * Fix indentation Signed-off-by: Mohamed Ragab <mohamed.ragab@hellofresh.com> --------- Signed-off-by: Mohamed Ragab <mohamed.ragab@hellofresh.com> Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
02949b14b1
commit
2ba2eb3daf
4 changed files with 11 additions and 2 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v1.7.0
|
appVersion: v1.7.0
|
||||||
description: A Helm chart for Argo Rollouts
|
description: A Helm chart for Argo Rollouts
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
version: 2.36.0
|
version: 2.36.1
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
|
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -19,4 +19,4 @@ annotations:
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: Bump argo-rollouts to v1.7.0
|
description: Add annotations for notifications secret
|
||||||
|
|
|
@ -58,6 +58,7 @@ For full list of changes please check ArtifactHub [changelog].
|
||||||
| kubeVersionOverride | string | `""` | Override the Kubernetes version, which is used to evaluate certain manifests |
|
| kubeVersionOverride | string | `""` | Override the Kubernetes version, which is used to evaluate certain manifests |
|
||||||
| nameOverride | string | `nil` | String to partially override "argo-rollouts.fullname" template |
|
| nameOverride | string | `nil` | String to partially override "argo-rollouts.fullname" template |
|
||||||
| notifications.notifiers | object | `{}` | Configures notification services |
|
| notifications.notifiers | object | `{}` | Configures notification services |
|
||||||
|
| notifications.secret.annotations | object | `{}` | Annotations to be added to the notifications secret |
|
||||||
| notifications.secret.create | bool | `false` | Whether to create notifications secret |
|
| notifications.secret.create | bool | `false` | Whether to create notifications secret |
|
||||||
| notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the notifications secret |
|
| notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the notifications secret |
|
||||||
| notifications.templates | object | `{}` | Notification templates |
|
| notifications.templates | object | `{}` | Notification templates |
|
||||||
|
|
|
@ -4,6 +4,12 @@ kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: argo-rollouts-notification-secret
|
name: argo-rollouts-notification-secret
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
{{- with .Values.notifications.secret.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
|
|
|
@ -454,6 +454,8 @@ notifications:
|
||||||
# -- Generic key:value pairs to be inserted into the notifications secret
|
# -- Generic key:value pairs to be inserted into the notifications secret
|
||||||
items: {}
|
items: {}
|
||||||
# slack-token:
|
# slack-token:
|
||||||
|
# -- Annotations to be added to the notifications secret
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
# -- Configures notification services
|
# -- Configures notification services
|
||||||
notifiers: {}
|
notifiers: {}
|
||||||
|
|
Loading…
Reference in a new issue