Explorar o código

Update check if cert available check

Waqar Ahmed %!s(int64=4) %!d(string=hai) anos
pai
achega
b347202ae2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      test/minio/1.2.0/templates/_helpers.tpl

+ 4 - 0
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 -}}