Skip to content

Commit ca41867

Browse files
authored
fix: templating of image pull secrets
2 parents 79331e3 + 1ddd6ab commit ca41867

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.5-dev
1+
v0.0.6

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)