From 119079d3a6afd881886354fe6440179de24ce67d Mon Sep 17 00:00:00 2001 From: cmontemuino <1761056+cmontemuino@users.noreply.github.com> Date: Wed, 22 Nov 2023 09:14:10 +0100 Subject: [PATCH] fix(charts): remove extra hyphen to make helm linter pass The hyphen at the end of the closing brackets is responsible for chomping all the whitespaces after the brackets. Thus, a previous YAML separator gets into the same line as the `apiVersion` element from the resource enable by the `if` statement. fixes openebs/lvm-localpv#271 Signed-off-by: cmontemuino <1761056+cmontemuino@users.noreply.github.com> --- deploy/helm/charts/templates/rbac.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/helm/charts/templates/rbac.yaml b/deploy/helm/charts/templates/rbac.yaml index 2d87a9d5..d2331c05 100644 --- a/deploy/helm/charts/templates/rbac.yaml +++ b/deploy/helm/charts/templates/rbac.yaml @@ -123,7 +123,8 @@ roleRef: apiGroup: rbac.authorization.k8s.io --- {{- end }} -{{- if .Values.serviceAccount.lvmNode.create -}} + +{{- if .Values.serviceAccount.lvmNode.create }} apiVersion: v1 kind: ServiceAccount metadata: