Skip to content

Conversation

@matonb
Copy link

@matonb matonb commented Jan 6, 2026

Created dedicated components.init_db.annotations configuration separate from components.api.annotations.

The db-init-job template now uses this dedicated variable instead of sharing the API annotations.

Default value includes helm.sh/hook: pre-install for Helm deployments, but ArgoCD users can override this to remove the hook and prevent deployment deadlocks.

Changes:

  • Added components.init_db.annotations and components.init_db.labels to values.yaml
  • Updated db-init-job template to use init_db instead of api variables
  • Documented ArgoCD override requirement in values comments

This prevents the deadlock where:

  1. ArgoCD adds hook-finalizer when it sees helm.sh/hook annotation
  2. ArgoCD waits for db-init-job hook before deploying wave 3
  3. db-init-job waits for PostgreSQL (wave 3)
  4. Result: infinite wait

Created dedicated components.init_db.annotations configuration separate
from components.api.annotations. The db-init-job template now uses this
dedicated variable instead of sharing the API annotations.

Default value includes helm.sh/hook: pre-install for Helm deployments,
but ArgoCD users can override this to remove the hook and prevent
deployment deadlocks.

Changes:
- Added components.init_db.annotations and components.init_db.labels to values.yaml
- Updated db-init-job template to use init_db instead of api variables
- Documented ArgoCD override requirement in values comments

This prevents the deadlock where:
1. ArgoCD adds hook-finalizer when it sees helm.sh/hook annotation
2. ArgoCD waits for db-init-job hook before deploying wave 3
3. db-init-job waits for PostgreSQL (wave 3)
4. Result: infinite wait
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.

1 participant