diff --git a/charts/tidb-drainer/templates/_helpers.tpl b/charts/tidb-drainer/templates/_helpers.tpl index 516fe402ba4..49c13cabec7 100644 --- a/charts/tidb-drainer/templates/_helpers.tpl +++ b/charts/tidb-drainer/templates/_helpers.tpl @@ -1,5 +1,5 @@ {{- define "drainer.name" -}} -{{- if .Values.drainerName }} +{{- if .Values.drainerName -}} {{ .Values.drainerName }} {{- else -}} {{ .Values.clusterName }}-{{ .Release.Name }}-drainer