瀏覽代碼

Update check if cert available check

Waqar Ahmed 4 年之前
父節點
當前提交
b347202ae2
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 -}}