From 9226b19196313ff29f92aeb9189e5f13ace5eb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCnemann?= Date: Thu, 11 Sep 2025 11:35:47 +0200 Subject: [PATCH 1/2] fix: fix the templating of image pull secrets --- .../templates/resources/kustomization.yaml | 2 +- .../openmcp/templates/resources/deployment.yaml | 2 +- .../templates/resources/kustomization.yaml | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/templates/fluxcd/templates/resources/kustomization.yaml b/templates/fluxcd/templates/resources/kustomization.yaml index b6288c7..56b671d 100644 --- a/templates/fluxcd/templates/resources/kustomization.yaml +++ b/templates/fluxcd/templates/resources/kustomization.yaml @@ -37,5 +37,5 @@ patches: template: spec: imagePullSecrets: - {{ toYaml .Values.imagePullSecrets | indent 8 }} +{{ toYaml .Values.imagePullSecrets | indent 14 }} {{- end }} diff --git a/templates/openmcp/templates/resources/deployment.yaml b/templates/openmcp/templates/resources/deployment.yaml index 38f4d1b..2373173 100644 --- a/templates/openmcp/templates/resources/deployment.yaml +++ b/templates/openmcp/templates/resources/deployment.yaml @@ -16,7 +16,7 @@ spec: labels: app: openmcp-operator spec: - serviceAccount: openmcp-operator + serviceAccountName: openmcp-operator initContainers: - name: openmcp-operator-init image: :latest diff --git a/templates/openmcp/templates/resources/kustomization.yaml b/templates/openmcp/templates/resources/kustomization.yaml index 06b70b4..c98e0a0 100644 --- a/templates/openmcp/templates/resources/kustomization.yaml +++ b/templates/openmcp/templates/resources/kustomization.yaml @@ -5,3 +5,20 @@ resources: - rbac.yaml - namespace.yaml - deployment.yaml + +{{- if .Values.imagePullSecrets }} +patches: + - target: + kind: Deployment + patch: | + apiVersion: apps/v1 + kind: Deployment + metadata: + name: this_value_is_ignored + spec: + template: + spec: + imagePullSecrets: +{{ toYaml .Values.imagePullSecrets | indent 14 }} +{{- end }} + From 1ddd6abcae07618ff8611572be348d7e41a61ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCnemann?= Date: Thu, 11 Sep 2025 11:38:12 +0200 Subject: [PATCH 2/2] feat: release v0.0.6 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 64bcf05..254a9f2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.0.5-dev \ No newline at end of file +v0.0.6 \ No newline at end of file