-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rudimentary sealed secrets support (no json schema)
- Loading branch information
Wojciech Międzybrodzki
committed
Jan 20, 2025
1 parent
a35d3d1
commit 7ce8cdd
Showing
7 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: v1 | ||
kind: List | ||
items: | ||
{{- range $name, $secret := .Values.sealedSecrets }} | ||
{{- if $.Capabilities.APIVersions.Has "bitnami.com/v1alpha1/SealedSecret" }} | ||
{{- else }} | ||
{{- fail "You need to install sealed-secrets operator and CRDs in order to use sealedSecrets." }} | ||
{{- end }} | ||
- apiVersion: bitnami.com/v1alpha1 | ||
kind: SealedSecret | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/cluster-wide: "true" | ||
labels: | ||
{{- include "platformex.globalLabels" $ | indent 10 }} | ||
name: "{{ required "name is required!" $secret.name }}" | ||
{{- if $secret.namespace }} | ||
namespace: {{ $secret.namespace | quote }} | ||
{{- end }} | ||
spec: | ||
encryptedData: | ||
{{- range $secret.sealedData }} | ||
{{ .key }}: {{ .value | quote }} | ||
{{- end }} | ||
template: | ||
metadata: | ||
name: "{{ $secret.name }}" | ||
{{- if $secret.data }} | ||
data: | ||
{{- range $secret.data }} | ||
{{ .key }}: {{ .value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
global: | ||
labels: | ||
ops.kodzik.cloud/chart: "platformex" | ||
ops.kodzik.cloud/chart: "app" | ||
defaults: { } | ||
|
||
envRefs: { } | ||
|