diff --git a/test/minio/1.2.0/templates/_helpers.tpl b/test/minio/1.2.0/templates/_helpers.tpl index 526b122225..f4d59c96f8 100644 --- a/test/minio/1.2.0/templates/_helpers.tpl +++ b/test/minio/1.2.0/templates/_helpers.tpl @@ -10,9 +10,13 @@ Determine secret name. Retrieve true/false if minio certificate is configured */}} {{- define "minio.certAvailable" -}} +{{- if .Values.certificate -}} {{- $values := (. | mustDeepCopy) -}} {{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} {{- template "common.resources.cert_present" $values -}} +{{- else -}} +{{- false -}} +{{- end -}} {{- end -}}