From 40083bb00945a91504be2b4ffc6a62d44188bfd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=BCnch?= Date: Wed, 1 Mar 2023 11:35:42 +0100 Subject: [PATCH] Provides a way to place generic secrets in the gardener apiserver 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 | 4 ++-- charts/pre-gardenlet/templates/secrets.yaml | 9 +++++++++ charts/pre-gardenlet/values.yaml | 6 ++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 charts/pre-gardenlet/templates/secrets.yaml diff --git a/charts/pre-gardenlet/Chart.yaml b/charts/pre-gardenlet/Chart.yaml index 1ad5b8a..e207bbc 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 prepairing the gardenlet installation -version: 1.38.2 +description: A Helm chart for preparing the gardenlet installation +version: 1.40.0 diff --git a/charts/pre-gardenlet/templates/secrets.yaml b/charts/pre-gardenlet/templates/secrets.yaml new file mode 100644 index 0000000..fa0c667 --- /dev/null +++ b/charts/pre-gardenlet/templates/secrets.yaml @@ -0,0 +1,9 @@ +{{- range .Values.global.additionalSecrets }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ .name }} + namespace: {{ .namespace }} +stringData: + {{- toYaml .stringData | nindent 2 }} +{{- end }} diff --git a/charts/pre-gardenlet/values.yaml b/charts/pre-gardenlet/values.yaml index f390a30..49dd43a 100644 --- a/charts/pre-gardenlet/values.yaml +++ b/charts/pre-gardenlet/values.yaml @@ -2,3 +2,9 @@ global: token: id: "12345a" # 6-digit secret: "1234567890abcdef" # 16-digit +# additionalSecrets: +# - name: testsecret +# namespace: testsecretnamespace +# stringData: +# test: test +# test2: test