diff --git a/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/daemonset.yaml b/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/daemonset.yaml index 0c04641..40d01ac 100644 --- a/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/daemonset.yaml +++ b/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/daemonset.yaml @@ -23,9 +23,9 @@ spec: labels: app: {{ .Values.global.name }} spec: -{{- if (.Values.global.rbac) or (.Values.global.reuseRbac)}} - serviceAccountName: {{.Values.rbac.serviceAccount}} -{{- end}} +{{- if or .Values.global.rbac .Values.global.reuseRbac }} + serviceAccountName: {{ .Values.rbac.serviceAccount }} +{{- end }} {{- if .Values.global.tolerations }} tolerations: {{ .Values.global.tolerations | toYaml | trim | indent 8 }} @@ -44,4 +44,4 @@ spec: env: - name: PROVISIONER_NAME value: {{ .Values.global.provisioner_name }} -{{- end}} +{{- end }} diff --git a/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/deployment.yaml b/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/deployment.yaml index 072f553..5bda622 100644 --- a/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/deployment.yaml +++ b/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/deployment.yaml @@ -24,7 +24,7 @@ spec: labels: app: {{ .Values.global.name }} spec: - {{- if (.Values.global.rbac) or (.Values.global.reuseRbac)}} + {{- if or .Values.global.rbac .Values.global.reuseRbac }} serviceAccount: {{ .Values.rbac.serviceAccount }} {{- end }} affinity: