From b347202ae2cca1c71bffa7fefe930eede4bf13b8 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Mon, 8 Feb 2021 02:52:22 +0500 Subject: [PATCH] Update check if cert available check --- test/minio/1.2.0/templates/_helpers.tpl | 4 ++++ 1 file changed, 4 insertions(+) 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 -}}