From 61cf7c51a08851ecd0da0c0c35efd4e46a9f8eeb Mon Sep 17 00:00:00 2001 From: jmorganca Date: Fri, 30 Jul 2021 21:52:14 -0400 Subject: [PATCH] fix syntax errors in helm chart --- helm/charts/engine/templates/_helpers.tpl | 8 -------- helm/charts/infra/templates/_helpers.tpl | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 helm/charts/engine/templates/_helpers.tpl diff --git a/helm/charts/engine/templates/_helpers.tpl b/helm/charts/engine/templates/_helpers.tpl deleted file mode 100644 index 69daa329ef..0000000000 --- a/helm/charts/engine/templates/_helpers.tpl +++ /dev/null @@ -1,8 +0,0 @@ -{{- define "infra.defaultApiKey" -}} -{{- $secret := (lookup "v1" "Secret" .Release.Namespace "infra-engine" ) -}} - {{- if $secret -}} - {{- index $secret "data" "api-key" | b64dec -}} - {{- else -}} - {{- (randAlphaNum 24) -}} - {{- end -}} -{{- end -}} diff --git a/helm/charts/infra/templates/_helpers.tpl b/helm/charts/infra/templates/_helpers.tpl index a39f4db9d9..f32a7e0b3f 100644 --- a/helm/charts/infra/templates/_helpers.tpl +++ b/helm/charts/infra/templates/_helpers.tpl @@ -19,7 +19,7 @@ Return the appropriate apiVersion for ingress {{- define "infra.defaultApiKey" -}} {{- $secret := (lookup "v1" "Secret" .Release.Namespace "infra" ) -}} {{- if $secret -}} - {{- index $secret "data" "api-key" | b64dec -}} + {{- index $secret "data" "defaultApiKey" | b64dec -}} {{- else -}} {{- (randAlphaNum 24) -}} {{- end -}}