diff --git a/Chart.yaml b/Chart.yaml index 5763a70..fe1ae26 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -13,4 +13,4 @@ name: synology-csi sources: - https://github.com/christian-schlichtherle/synology-csi-chart/tree/main - https://github.com/SynologyOpenSource/synology-csi/tree/main -version: 0.9.2-SNAPSHOT # must be SemVer 2 +version: 0.9.2 # must be SemVer 2 diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index b128700..2041f82 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -57,9 +57,5 @@ Client Info Secret Volume: {{- define "synology-csi.clientInfoSecretVolume" -}} name: client-info secret: -{{- if .Values.clientInfoSecretName }} - secretName: {{ $.Values.clientInfoSecretName }} -{{- else }} - secretName: {{ include "synology-csi.fullname" . }}-client-info -{{- end }} + secretName: {{ .Values.clientInfoSecret.name | default (include "synology-csi.fullname" . | printf "%s-client-info") }} {{- end }}