-
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.
Merge pull request #54 from T-Systems-MMS/feature/secrets_in_k8s_chart
New secret template in k8s chart
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
apiVersion: v1 | ||
name: k8s | ||
description: Kubernetes Cluster Configuration | ||
version: 0.1.4 | ||
version: 0.1.5 |
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,20 @@ | ||
{{- if .Values.secret -}} | ||
{{- $secret := .Values.secret }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ $secret.name | quote }} | ||
namespace: {{ $secret.namespace | quote }} | ||
annotations: | ||
{{- range $key, $value := $secret.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
type: {{ $secret.type }} | ||
{{- if $secret.data }} | ||
data: {{ $secret.data | nindent 2 }} | ||
{{- end }} | ||
{{- if $secret.stringData }} | ||
stringData: {{ $secret.stringData | nindent 2 }} | ||
{{- end }} | ||
{{- end -}} |