From 4e2ee8cd8384135961c42b8ea7d306be90278a9d Mon Sep 17 00:00:00 2001 From: Sagar Patil Date: Tue, 17 Mar 2026 23:19:11 +0530 Subject: [PATCH] Fix init container: use externalDatabase password instead of missing secret The init-db-config container was referencing a non-existent secret {namespace}-os-schedules-argo-syncer-mysql, causing CreateContainerConfigError. Now reads password directly from .Values.externalDatabase.password. Co-Authored-By: Claude Opus 4.6 --- helm/schedulerservice/templates/deployment.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/helm/schedulerservice/templates/deployment.yaml b/helm/schedulerservice/templates/deployment.yaml index 16fc8ab..74c203d 100644 --- a/helm/schedulerservice/templates/deployment.yaml +++ b/helm/schedulerservice/templates/deployment.yaml @@ -75,10 +75,7 @@ spec: echo "MySQL is fully initialized!" env: - name: MYSQL_PASSWORD - valueFrom: - secretKeyRef: - name: {{ .Release.Namespace }}-os-schedules-argo-syncer-mysql - key: mysql-password + value: {{ .Values.externalDatabase.password | quote }} volumeMounts: - name: db-config mountPath: /db-config