
* 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>
21 lines
605 B
YAML
21 lines
605 B
YAML
{{ if .Values.notifications.secret.create }}
|
|
apiVersion: v1
|
|
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 }}
|
|
type: Opaque
|
|
stringData:
|
|
{{- with .Values.notifications.secret.items }}
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|