Fix Helm chart indentation

The flowcontrol-solver ClusterRole and ClusterRoleBinding had an extra
level of indentation for labels which resulted in invalid YAML after
templating. This patch removes the extra indentation so Helm install
works again.
This commit is contained in:
Samuel Bowman 2022-09-01 17:20:45 -04:00
parent de4dbbf96a
commit e488b5fc16

View file

@ -112,7 +112,7 @@ kind: ClusterRole
metadata: metadata:
name: {{ include "gcore-webhook.fullname" . }}:flowcontrol-solver name: {{ include "gcore-webhook.fullname" . }}:flowcontrol-solver
labels: labels:
{{ include "gcore-webhook.labels" . | indent 4 }} {{ include "gcore-webhook.labels" . | indent 4 }}
rules: rules:
- apiGroups: - apiGroups:
- "flowcontrol.apiserver.k8s.io" - "flowcontrol.apiserver.k8s.io"
@ -128,7 +128,7 @@ kind: ClusterRoleBinding
metadata: metadata:
name: {{ include "gcore-webhook.fullname" . }}:flowcontrol-solver name: {{ include "gcore-webhook.fullname" . }}:flowcontrol-solver
labels: labels:
{{ include "gcore-webhook.labels" . | indent 4 }} {{ include "gcore-webhook.labels" . | indent 4 }}
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
@ -137,4 +137,4 @@ subjects:
- apiGroup: "" - apiGroup: ""
kind: ServiceAccount kind: ServiceAccount
name: {{ include "gcore-webhook.fullname" . }} name: {{ include "gcore-webhook.fullname" . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}