From 16a0e1b1f358e51e935757286a2a92078b80607a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=BCnch?= Date: Mon, 6 Mar 2023 15:22:42 +0100 Subject: [PATCH] Adds ability use the data field of secretes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Malte Münch --- charts/pre-gardenlet/Chart.yaml | 2 +- charts/pre-gardenlet/templates/secrets.yaml | 2 ++ charts/pre-gardenlet/values.yaml | 13 +++++++------ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/charts/pre-gardenlet/Chart.yaml b/charts/pre-gardenlet/Chart.yaml index e207bbc..ab0e116 100644 --- a/charts/pre-gardenlet/Chart.yaml +++ b/charts/pre-gardenlet/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: pre-gardenlet description: A Helm chart for preparing the gardenlet installation -version: 1.40.0 +version: 1.41.0 diff --git a/charts/pre-gardenlet/templates/secrets.yaml b/charts/pre-gardenlet/templates/secrets.yaml index fa0c667..f89f237 100644 --- a/charts/pre-gardenlet/templates/secrets.yaml +++ b/charts/pre-gardenlet/templates/secrets.yaml @@ -4,6 +4,8 @@ kind: Secret metadata: name: {{ .name }} namespace: {{ .namespace }} +data: + {{- toYaml .data | nindent 2 }} stringData: {{- toYaml .stringData | nindent 2 }} {{- end }} diff --git a/charts/pre-gardenlet/values.yaml b/charts/pre-gardenlet/values.yaml index 49dd43a..2bcf185 100644 --- a/charts/pre-gardenlet/values.yaml +++ b/charts/pre-gardenlet/values.yaml @@ -2,9 +2,10 @@ global: token: id: "12345a" # 6-digit secret: "1234567890abcdef" # 16-digit -# additionalSecrets: -# - name: testsecret -# namespace: testsecretnamespace -# stringData: -# test: test -# test2: test + additionalSecrets: + - name: testsecret + namespace: testsecretnamespace + stringData: + test2: test + data: + test: dGVzdAo=