From abb69322e4c3acaf3fb0f8cf3e49f25863dee4b5 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Mon, 14 Oct 2024 10:00:20 -0500 Subject: [PATCH] fix secret data field (#94) This chart was not encoding the data values as base64 or using stringData which results in an invalid secret value. This changes the field to use stringData which will encode the value on apply. Signed-off-by: Mike Mason --- chart/iam-runtime-infratographer/templates/_secrets.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/iam-runtime-infratographer/templates/_secrets.tpl b/chart/iam-runtime-infratographer/templates/_secrets.tpl index b2175dab..35d0d444 100644 --- a/chart/iam-runtime-infratographer/templates/_secrets.tpl +++ b/chart/iam-runtime-infratographer/templates/_secrets.tpl @@ -6,7 +6,7 @@ kind: Secret metadata: name: {{ include "iam-runtime-infratographer.resource.fullname" (dict "suffix" "secrets" "context" $) | quote }} labels: {{- include "common.labels.standard" $ | nindent 4 }} -data: +stringData: {{- with $values.config.events.nats.token }} IAMRUNTIME_EVENTS_NATS_TOKEN: {{ quote . }} {{- end }}