Skip to content

Commit 9226b19

Browse files
committed
fix: fix the templating of image pull secrets
1 parent 79331e3 commit 9226b19

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

templates/fluxcd/templates/resources/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ patches:
3737
template:
3838
spec:
3939
imagePullSecrets:
40-
{{ toYaml .Values.imagePullSecrets | indent 8 }}
40+
{{ toYaml .Values.imagePullSecrets | indent 14 }}
4141
{{- end }}

templates/openmcp/templates/resources/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
labels:
1717
app: openmcp-operator
1818
spec:
19-
serviceAccount: openmcp-operator
19+
serviceAccountName: openmcp-operator
2020
initContainers:
2121
- name: openmcp-operator-init
2222
image: <openmcp/openmcp-operator>:latest

templates/openmcp/templates/resources/kustomization.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,20 @@ resources:
55
- rbac.yaml
66
- namespace.yaml
77
- deployment.yaml
8+
9+
{{- if .Values.imagePullSecrets }}
10+
patches:
11+
- target:
12+
kind: Deployment
13+
patch: |
14+
apiVersion: apps/v1
15+
kind: Deployment
16+
metadata:
17+
name: this_value_is_ignored
18+
spec:
19+
template:
20+
spec:
21+
imagePullSecrets:
22+
{{ toYaml .Values.imagePullSecrets | indent 14 }}
23+
{{- end }}
24+

0 commit comments

Comments
 (0)