When .Values.db.useExisting is true, the migration job is unable to connect to the DB, because the .Values.db.url references env vars that the migration job does not have access to. As a result, the env vars are not replaced, and the url looks like postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME) verbatim.
What happened?
When
.Values.db.useExisting
is true, the migration job is unable to connect to the DB, because the .Values.db.url references env vars that the migration job does not have access to. As a result, the env vars are not replaced, and the url looks likepostgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME)
verbatim.This is because the migration template does not include them, whereas the deployment template does.
I propose that we simply add the missing env vars to the migration template.
Relevant log output
Twitter / LinkedIn details
No response