diff --git a/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml b/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml index bb72f8772..554807e61 100644 --- a/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml +++ b/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml @@ -297,8 +297,9 @@ spec: -sftp.userStoreFile=/etc/sw/sftp/seaweedfs_sftp_config \ {{- end }} {{- end }} - {{- range .Values.allInOne.extraArgs }} - {{ . }} \ + {{- $extraArgsCount := len .Values.allInOne.extraArgs }} + {{- range $i, $arg := .Values.allInOne.extraArgs }} + {{ $arg }}{{ if ne (add1 $i) $extraArgsCount }} \{{ end }} {{- end }} volumeMounts: