diff --git a/charts/simple-workflow/Chart.yaml b/charts/simple-workflow/Chart.yaml index 9c2e86e8..2c801b31 100644 --- a/charts/simple-workflow/Chart.yaml +++ b/charts/simple-workflow/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: simple-workflow description: Default Argo Workflow Helm Chart type: application -version: 0.0.14 +version: 0.0.15 appVersion: latest maintainers: - name: masterginger diff --git a/charts/simple-workflow/README.md b/charts/simple-workflow/README.md index ed2d10b4..3305cbd2 100644 --- a/charts/simple-workflow/README.md +++ b/charts/simple-workflow/README.md @@ -2,7 +2,7 @@ Default Argo Workflow Helm Chart -![Version: 0.0.14](https://img.shields.io/badge/Version-0.0.14-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) +![Version: 0.0.15](https://img.shields.io/badge/Version-0.0.15-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) ## Values diff --git a/charts/simple-workflow/templates/sealedsecret.yaml b/charts/simple-workflow/templates/sealedsecret.yaml new file mode 100644 index 00000000..951c92c0 --- /dev/null +++ b/charts/simple-workflow/templates/sealedsecret.yaml @@ -0,0 +1,21 @@ +{{- if and (.Values.secrets) (eq .Values.secretsEngine "sealed") }} +apiVersion: bitnami.com/v1alpha1 +kind: SealedSecret +metadata: + name: {{ .Release.Name }}-secrets + annotations: + {{- /* + Always (for now) set scope to be namespace-wide. At any time if usecases arise to + for cluster-wide scope, we can update these template to make it configurable (this + would also mean a separation of SealedSecret objects if mixing-and-matching) + */}} + sealedsecrets.bitnami.com/namespace-wide: "true" +spec: + encryptedData: + {{- range $key, $value := .Values.secrets }} + {{ $key }}: {{ $value | quote }} + {{- end }} + template: + metadata: + name: {{ .Release.Name }}-secrets +{{- end }}