Skip to content

fix: unblock external Postgres pre-install hook - #6988

Closed
sagarkt wants to merge 1 commit into
devtron-labs:mainfrom
sagarkt:ao/devtron-37/external-postgres-hook-sa
Closed

fix: unblock external Postgres pre-install hook#6988
sagarkt wants to merge 1 commit into
devtron-labs:mainfrom
sagarkt:ao/devtron-37/external-postgres-hook-sa

Conversation

@sagarkt

@sagarkt sagarkt commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • let the external PostgreSQL database-creator hook use the namespace default service account
  • remove its dependency on devtron-default-sa, which Helm creates only after pre-install hooks finish

Root cause

The database creator runs as a pre-install hook, while devtron-default-sa is a normal release resource. Kubernetes therefore rejects the hook pod before Helm has created that service account.

Validation

  • helm lint with CICD, Argo CD, and external PostgreSQL enabled
  • rendered the migrator template and verified the database creator is present without a release service-account dependency
  • verified the database creator remains absent when external PostgreSQL is disabled

Closes #6973

@bito-code-review

Copy link
Copy Markdown

Bito Review Skipped - Source Branch Not Found

Bito didn't review this change because the pull request is no longer valid. It may have been merged, or the source/target branch may no longer exist.

@sagarkt sagarkt closed this Jul 16, 2026
@sagarkt
sagarkt deleted the ao/devtron-37/external-postgres-hook-sa branch July 16, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Helm chart Unable to pass external database information when installing Devtron

1 participant