Skip to content

Commit e1c480c

Browse files
authored
Fix rbac ServiceAccount imagePullSecrets template (#1953)
Fix rbac ServiceAccount imagePullSecrets template. Problem: NGF fails to deploy with NGINX+ because of the rbac ServiceAccount imagePullSecrets template error. Solution: Fix the spacing which moves imagePullSecrets from being in the ServiceAccount's metadata to its own field.
1 parent 4d0a3de commit e1c480c

File tree

1 file changed

+10
-10
lines changed
  • charts/nginx-gateway-fabric/templates

1 file changed

+10
-10
lines changed

charts/nginx-gateway-fabric/templates/rbac.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ metadata:
77
{{- include "nginx-gateway.labels" . | nindent 4 }}
88
annotations:
99
{{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
10-
{{- if or .Values.serviceAccount.imagePullSecret .Values.serviceAccount.imagePullSecrets }}
11-
imagePullSecrets:
12-
{{- if .Values.serviceAccount.imagePullSecret }}
13-
- name: {{ .Values.serviceAccount.imagePullSecret }}
14-
{{- end }}
15-
{{- if .Values.serviceAccount.imagePullSecrets }}
16-
{{- range .Values.serviceAccount.imagePullSecrets }}
17-
- name: {{ . }}
18-
{{- end }}
19-
{{- end }}
10+
{{- if or .Values.serviceAccount.imagePullSecret .Values.serviceAccount.imagePullSecrets }}
11+
imagePullSecrets:
12+
{{- if .Values.serviceAccount.imagePullSecret }}
13+
- name: {{ .Values.serviceAccount.imagePullSecret }}
2014
{{- end }}
15+
{{- if .Values.serviceAccount.imagePullSecrets }}
16+
{{- range .Values.serviceAccount.imagePullSecrets }}
17+
- name: {{ . }}
18+
{{- end }}
19+
{{- end }}
20+
{{- end }}
2121
---
2222
apiVersion: rbac.authorization.k8s.io/v1
2323
kind: ClusterRole

0 commit comments

Comments
 (0)