|
|
@@ -30,3 +30,15 @@ Create chart name and version as used by the chart label.
|
|
|
{{- define "emqx.chart" -}}
|
|
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
|
|
{{- end -}}
|
|
|
+
|
|
|
+
|
|
|
+{{/*
|
|
|
+Get ssl secret name .
|
|
|
+*/}}
|
|
|
+{{- define "emqx.ssl.secretName" -}}
|
|
|
+{{- if and .Values.ssl.useExisting .Values.ssl.existingName -}}
|
|
|
+ {{ .Values.ssl.existingName }}
|
|
|
+{{- else -}}
|
|
|
+ {{ include "emqx.fullname" . }}-tls
|
|
|
+{{- end -}}
|
|
|
+{{- end -}}
|