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 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 }} +