forked from 23technologies/gardener-extension-shoot-flux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extraSecrets option to create additional Secrets (#94)
* Add extraSecrets option * generate * and extraLabels
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 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
18 changes: 18 additions & 0 deletions
18
charts/gardener-extension-shoot-flux/templates/extrasecrets.yaml
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,18 @@ | ||
{{- $namespace := .Release.Namespace }} | ||
{{- range $i, $val := .Values.extraSecrets }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ $val.name }} | ||
namespace: {{ $namespace }} | ||
type: Opaque | ||
{{- with $val.data }} | ||
data: | ||
{{- . | toYaml | nindent 2 }} | ||
{{- end }} | ||
{{- with $val.stringData }} | ||
stringData: | ||
{{- . | toYaml | nindent 2 }} | ||
{{- 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