Skip to content

Commit

Permalink
feat: NVSHAS-9382 remove lookup for aws-addon
Browse files Browse the repository at this point in the history
WARNING: Do not merge this to main tree as this is specifically for
aws-addon.
  • Loading branch information
holyspectral committed Aug 28, 2024
1 parent 03b8a82 commit ad03d0a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions charts/core/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ad03d0a

Please sign in to comment.