From ad03d0abcdb79d58f07e65f8ef779617230a132a Mon Sep 17 00:00:00 2001 From: "Sam Wang (holyspectral)" Date: Tue, 27 Aug 2024 17:51:09 -0400 Subject: [PATCH] feat: NVSHAS-9382 remove lookup for aws-addon WARNING: Do not merge this to main tree as this is specifically for aws-addon. --- charts/core/templates/_helpers.tpl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/charts/core/templates/_helpers.tpl b/charts/core/templates/_helpers.tpl index 8a598d32..f8f5388f 100644 --- a/charts/core/templates/_helpers.tpl +++ b/charts/core/templates/_helpers.tpl @@ -35,17 +35,9 @@ Create chart name and version as used by the chart label. Lookup secret. */}} {{- define "neuvector.secrets.lookup" -}} -{{- $value := "" -}} -{{- $secretData := (lookup "v1" "Secret" .namespace .secret).data -}} -{{- if and $secretData (hasKey $secretData .key) -}} - {{- $value = index $secretData .key -}} -{{- else if .defaultValue -}} - {{- $value = .defaultValue | toString | b64enc -}} -{{- end -}} -{{- if $value -}} +{{- $value := .defaultValue | toString | b64enc -}} {{- printf "%s" $value -}} {{- end -}} -{{- end -}} {{- define "neuvector.controller.image" -}} {{- if .Values.global.azure.enabled }}