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 <noreply@anthropic.com>
This commit is contained in:
Sagar Patil 2026-03-17 23:19:11 +05:30
parent 4d71caf810
commit 4e2ee8cd83

View File

@ -75,10 +75,7 @@ spec:
echo "MySQL is fully initialized!" echo "MySQL is fully initialized!"
env: env:
- name: MYSQL_PASSWORD - name: MYSQL_PASSWORD
valueFrom: value: {{ .Values.externalDatabase.password | quote }}
secretKeyRef:
name: {{ .Release.Namespace }}-os-schedules-argo-syncer-mysql
key: mysql-password
volumeMounts: volumeMounts:
- name: db-config - name: db-config
mountPath: /db-config mountPath: /db-config