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
|
|
@ -4,6 +4,12 @@ kind: Secret
|
|||
metadata:
|
||||
name: argo-rollouts-notification-secret
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
{{- with .Values.notifications.secret.annotations }}
|
||||
annotations:
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue