danhuawang opened a new pull request, #15001: URL: https://github.com/apache/gravitino/pull/15001
## What changes were proposed in this pull request? - Add a `pre-install` / `pre-upgrade` Helm hook Job (`schema-migrate-job.yaml`) that runs entity-store schema SQL once per release revision, following the enterprise chart pattern (`schema-migrate.sh` + sqlfile init). - Add `schema.migrate` values (opt-in, default `false`). When enabled, skip per-pod `init-mysql` / `init-postgresql` schema apply to avoid rolling-update races (#11099). - Support in-chart Bitnami MySQL/PostgreSQL and external `jdbc:mysql://` / `jdbc:postgresql://` entity stores; external installs require `schema.migrate.existingSecret` (#9013). - Document usage in `values.yaml`, `NOTES.txt`, and `docs/chart.md`. Fixes #11099 Fixes #9013 ## Why are the changes needed? Schema init in Deployment initContainers runs on every Pod during a rollout, which can race on shared databases. External databases also require manual DDL before install today. ## Does this PR introduce _any_ user-facing change? Yes. New optional `schema.migrate` and `schema.*` connection override values. Default behavior is unchanged (`schema.migrate.enabled=false`). ## How was this patch tested? ```bash cd dev/charts/gravitino && helm unittest . ``` All tests pass, including new cases in `tests/schema_migrate_test.yaml` (hook annotations, in-chart skip init, external Secret wiring, negative render failures). Made with [Cursor](https://cursor.com) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
