فهرست منبع

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 -}}