Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(simple-workflow): Add secretsEngine support for Sealed Secrets #275

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/simple-workflow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/simple-workflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
21 changes: 21 additions & 0 deletions charts/simple-workflow/templates/sealedsecret.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Loading