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 <tnielsen@redhat.com>
(cherry picked from commit b1a0918d0e)
This commit is contained in:
1 parent
b2937fbe98
commit
beec916f00
11 files changed
+17
-17
No files matched your search
@@ -61,4 +61,4 @@ subjects:
|
||||
- kind: ServiceAccount
|
||||
name: rook-ceph-cmd-reporter
|
||||
namespace: {{ .Release.Namespace }} # namespace:cluster
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
@@ -90,4 +90,4 @@ subjects:
|
||||
- kind: ServiceAccount
|
||||
name: rook-ceph-purge-osd
|
||||
namespace: {{ .Release.Namespace }} # namespace:cluster
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
@@ -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 }}
|
||||
@@ -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 }}
|
||||
@@ -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 }}
|
||||
@@ -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 }}
|
||||
@@ -18,7 +18,7 @@ clusterrolebindings
|
||||
{{- if .Values.pspEnable }}
|
||||
---
|
||||
{{ include "library.cluster.psp.rolebindings" . }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
roles
|
||||
|
||||
@@ -535,4 +535,4 @@ rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["serviceaccounts"]
|
||||
verbs: ["get"]
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
@@ -99,4 +99,4 @@ roleRef:
|
||||
kind: ClusterRole
|
||||
name: rbd-external-provisioner-runner
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
@@ -168,4 +168,4 @@ subjects:
|
||||
name: rook-csi-rbd-provisioner-sa
|
||||
namespace: {{ .Release.Namespace }} # namespace:operator
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
@@ -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 }}
|
||||
Reference in new issue
Block a user