From 0e34a273fce7334d46188e2069c17fcd9a7db2fb Mon Sep 17 00:00:00 2001 From: Alexander Rashed Date: Mon, 9 Oct 2023 10:15:33 +0200 Subject: [PATCH] add documention on how to use a secret to store the API key --- charts/localstack/README.md | 10 ++++++++++ charts/localstack/test-values.yaml | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/charts/localstack/README.md b/charts/localstack/README.md index d3ae815..c20d76a 100644 --- a/charts/localstack/README.md +++ b/charts/localstack/README.md @@ -54,6 +54,16 @@ extraEnvVars: value: "" ``` +If you have the LocalStack API key in a secret, you can also reference it directly with `extraEnvVars`: +``` +extraEnvVars: +- name: LOCALSTACK_API_KEY + valueFrom: + secretKeyRef: + name: + key: +``` + And you can use these values when installing the chart in your cluster: ```bash $ helm repo add localstack-charts https://localstack.github.io/helm-charts diff --git a/charts/localstack/test-values.yaml b/charts/localstack/test-values.yaml index e4c73c1..581d29c 100644 --- a/charts/localstack/test-values.yaml +++ b/charts/localstack/test-values.yaml @@ -24,6 +24,15 @@ mountDind: # image: # repository: localstack/localstack-pro +# set the API key from an already existing secret +# extraEnvVars: +# - name: LOCALSTACK_API_KEY +# valueFrom: +# secretKeyRef: +# name: +# key: + +# or set the API key directly # extraEnvVars: # - name: LOCALSTACK_API_KEY # value: ""