Commit b347202a authored by Waqar Ahmed's avatar Waqar Ahmed

Update check if cert available check

parent 19ad9ab7
...@@ -10,9 +10,13 @@ Determine secret name. ...@@ -10,9 +10,13 @@ Determine secret name.
Retrieve true/false if minio certificate is configured Retrieve true/false if minio certificate is configured
*/}} */}}
{{- define "minio.certAvailable" -}} {{- define "minio.certAvailable" -}}
{{- if .Values.certificate -}}
{{- $values := (. | mustDeepCopy) -}} {{- $values := (. | mustDeepCopy) -}}
{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} {{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}}
{{- template "common.resources.cert_present" $values -}} {{- template "common.resources.cert_present" $values -}}
{{- else -}}
{{- false -}}
{{- end -}}
{{- end -}} {{- end -}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment