From beec916f002ee61a06d4e9e14b7d1ca0109b02f0 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Mon, 24 Jan 2022 14:11:28 -0700 Subject: [PATCH] helm: fix linter issue with end tag Recent versions of helm are failing the linter on the end tag if the tag is "{{- end -}}". Instead, the correct end tag is "{{- end }}". Signed-off-by: Travis Nielsen (cherry picked from commit b1a0918d0eae08db6bd0d5256f6fa514eaf55223) --- deploy/charts/library/templates/_cluster-psp.tpl | 2 +- deploy/charts/library/templates/_cluster-rolebinding.tpl | 2 +- deploy/charts/library/templates/_recommended-labels.tpl | 2 +- .../library/templates/_suffix-cluster-namespace.tpl | 4 ++-- deploy/charts/rook-ceph-cluster/templates/_helpers.tpl | 8 ++++---- deploy/charts/rook-ceph-cluster/templates/rbac.yaml | 4 ++-- deploy/charts/rook-ceph/templates/cluster-rbac.yaml | 2 +- deploy/charts/rook-ceph/templates/clusterrole.yaml | 2 +- deploy/charts/rook-ceph/templates/clusterrolebinding.yaml | 2 +- deploy/charts/rook-ceph/templates/psp.yaml | 2 +- deploy/charts/rook-ceph/templates/rolebinding.yaml | 4 ++-- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/deploy/charts/library/templates/_cluster-psp.tpl b/deploy/charts/library/templates/_cluster-psp.tpl index 1918f7774..2d735d1ee 100644 --- a/deploy/charts/library/templates/_cluster-psp.tpl +++ b/deploy/charts/library/templates/_cluster-psp.tpl @@ -61,4 +61,4 @@ subjects: - kind: ServiceAccount name: rook-ceph-cmd-reporter namespace: {{ .Release.Namespace }} # namespace:cluster -{{- end -}} +{{- end }} diff --git a/deploy/charts/library/templates/_cluster-rolebinding.tpl b/deploy/charts/library/templates/_cluster-rolebinding.tpl index 4196165b2..b9748d401 100644 --- a/deploy/charts/library/templates/_cluster-rolebinding.tpl +++ b/deploy/charts/library/templates/_cluster-rolebinding.tpl @@ -90,4 +90,4 @@ subjects: - kind: ServiceAccount name: rook-ceph-purge-osd namespace: {{ .Release.Namespace }} # namespace:cluster -{{- end -}} +{{- end }} diff --git a/deploy/charts/library/templates/_recommended-labels.tpl b/deploy/charts/library/templates/_recommended-labels.tpl index 906755c67..546e3b55c 100644 --- a/deploy/charts/library/templates/_recommended-labels.tpl +++ b/deploy/charts/library/templates/_recommended-labels.tpl @@ -6,4 +6,4 @@ app.kubernetes.io/part-of: rook-ceph-operator app.kubernetes.io/managed-by: helm app.kubernetes.io/created-by: helm helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" -{{- end -}} +{{- end }} diff --git a/deploy/charts/library/templates/_suffix-cluster-namespace.tpl b/deploy/charts/library/templates/_suffix-cluster-namespace.tpl index 6957a910c..fdf679340 100644 --- a/deploy/charts/library/templates/_suffix-cluster-namespace.tpl +++ b/deploy/charts/library/templates/_suffix-cluster-namespace.tpl @@ -14,5 +14,5 @@ If the cluster namespace is different from the operator namespace, we want to na {{- $clusterNamespace := .Release.Namespace -}} {{- if ne $clusterNamespace $operatorNamespace -}} {{ printf "-%s" $clusterNamespace }} -{{- end -}} -{{- end -}} +{{- end }} +{{- end }} diff --git a/deploy/charts/rook-ceph-cluster/templates/_helpers.tpl b/deploy/charts/rook-ceph-cluster/templates/_helpers.tpl index 96b5fdbfd..a8a6fb5e7 100644 --- a/deploy/charts/rook-ceph-cluster/templates/_helpers.tpl +++ b/deploy/charts/rook-ceph-cluster/templates/_helpers.tpl @@ -3,14 +3,14 @@ Define the clusterName as defaulting to the release namespace */}} {{- define "clusterName" -}} {{ .Values.clusterName | default .Release.Namespace }} -{{- end -}} +{{- end }} {{/* Return the target Kubernetes version. */}} {{- define "capabilities.kubeVersion" -}} {{- default .Capabilities.KubeVersion.Version .Values.kubeVersion -}} -{{- end -}} +{{- end }} {{/* Return the appropriate apiVersion for ingress. @@ -22,5 +22,5 @@ Return the appropriate apiVersion for ingress. {{- print "networking.k8s.io/v1beta1" -}} {{- else -}} {{- print "networking.k8s.io/v1" -}} -{{- end -}} -{{- end -}} +{{- end }} +{{- end }} diff --git a/deploy/charts/rook-ceph-cluster/templates/rbac.yaml b/deploy/charts/rook-ceph-cluster/templates/rbac.yaml index 7b04b373d..1e3540572 100644 --- a/deploy/charts/rook-ceph-cluster/templates/rbac.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/rbac.yaml @@ -14,7 +14,7 @@ clusterrolebindings {{- if .Values.pspEnable }} --- {{ include "library.cluster.psp.rolebindings" . }} -{{- end -}} +{{- end }} {{/* roles @@ -38,4 +38,4 @@ rolebindings {{ include "library.cluster.monitoring.rolebindings" . }} {{- end }} -{{- end -}} +{{- end }} diff --git a/deploy/charts/rook-ceph/templates/cluster-rbac.yaml b/deploy/charts/rook-ceph/templates/cluster-rbac.yaml index 38a21a351..06dcca401 100644 --- a/deploy/charts/rook-ceph/templates/cluster-rbac.yaml +++ b/deploy/charts/rook-ceph/templates/cluster-rbac.yaml @@ -18,7 +18,7 @@ clusterrolebindings {{- if .Values.pspEnable }} --- {{ include "library.cluster.psp.rolebindings" . }} -{{- end -}} +{{- end }} {{/* roles diff --git a/deploy/charts/rook-ceph/templates/clusterrole.yaml b/deploy/charts/rook-ceph/templates/clusterrole.yaml index f76bbe883..d2af9cbcb 100644 --- a/deploy/charts/rook-ceph/templates/clusterrole.yaml +++ b/deploy/charts/rook-ceph/templates/clusterrole.yaml @@ -535,4 +535,4 @@ rules: - apiGroups: [""] resources: ["serviceaccounts"] verbs: ["get"] -{{- end -}} +{{- end }} diff --git a/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml b/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml index 766379795..c99ec442c 100644 --- a/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml +++ b/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml @@ -99,4 +99,4 @@ roleRef: kind: ClusterRole name: rbd-external-provisioner-runner apiGroup: rbac.authorization.k8s.io -{{- end -}} +{{- end }} diff --git a/deploy/charts/rook-ceph/templates/psp.yaml b/deploy/charts/rook-ceph/templates/psp.yaml index 23c5a415b..920299873 100644 --- a/deploy/charts/rook-ceph/templates/psp.yaml +++ b/deploy/charts/rook-ceph/templates/psp.yaml @@ -168,4 +168,4 @@ subjects: name: rook-csi-rbd-provisioner-sa namespace: {{ .Release.Namespace }} # namespace:operator {{- end }} -{{- end -}} +{{- end }} diff --git a/deploy/charts/rook-ceph/templates/rolebinding.yaml b/deploy/charts/rook-ceph/templates/rolebinding.yaml index 5be43f9ca..5e5c4e6ce 100644 --- a/deploy/charts/rook-ceph/templates/rolebinding.yaml +++ b/deploy/charts/rook-ceph/templates/rolebinding.yaml @@ -47,7 +47,7 @@ roleRef: name: rbd-csi-nodeplugin apiGroup: rbac.authorization.k8s.io --- -{{- end -}} +{{- end }} kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: @@ -61,4 +61,4 @@ roleRef: kind: Role name: rbd-external-provisioner-cfg apiGroup: rbac.authorization.k8s.io -{{- end -}} +{{- end }}