Add recommendation for strictMode (#143)

This commit is contained in:
kfox1111
2023-12-19 12:12:53 +01:00
committed by GitHub
parent 4fb9d18f50
commit 50c4ac35b0
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ if strictMode is enabled and the boolean is true
{{ $root := index . 0 }}
{{ $message := index . 1 }}
{{ $condition := index . 2 }}
{{- if (dig "spire" "strictMode" false $root.Values.global) }}
{{- if or (dig "spire" "strictMode" false $root.Values.global) (and (dig "spire" "recommendations" "enabled" false $root.Values.global) (dig "spire" "recommendations" "strictMode" true $root.Values.global)) }}
{{- if $condition }}
{{- fail $message }}
{{- end }}