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 -}}