Skip to content

Commit f854de2

Browse files
sbernaueradwk67
andauthored
feat: Add generic database connection mechanism (#754)
* feat: Implement generic database connection * fix: Add to Pod template as well * Bump op-rs * Fix tests * Update kuttl tests Co-authored-by: Andrew Kenworthy <andrew.kenworthy@stackable.tech> * Update docs Co-authored-by: Andrew Kenworthy <andrew.kenworthy@stackable.tech> * Further update docs * bump op-rs * cargo fmt * Use docs from op-rs * Bump op-rs * Impl Deref for database connection enums * Some docs * Rename celeryResultBackend -> ResultBackend and celeryBroker -> broker * WIP changelog * changelog * changelog * Fix some leftover credentialsSecret renames * test: Fix ca-cert test * More test fixes * Fix more tests * Update tests/templates/kuttl/versioning/30-install-airflow-cluster.yaml.j2 Co-authored-by: Andrew Kenworthy <1712947+adwk67@users.noreply.github.com> * yaml linter --------- Co-authored-by: Andrew Kenworthy <andrew.kenworthy@stackable.tech> Co-authored-by: Andrew Kenworthy <1712947+adwk67@users.noreply.github.com>
1 parent aff1665 commit f854de2

54 files changed

Lines changed: 1401 additions & 928 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
- BREAKING: `configOverrides` now only accepts the known config file `webserver_config.py`. Previously, arbitrary file names were silently accepted and ignored ([#775]).
1414
- Bump `stackable-operator` to 0.110.1, kube to 3.1.0, and snafu to 0.9 ([#775]).
1515
- BREAKING: Rename `EXPERIMENTAL_FILE_HEADER` and `EXPERIMENTAL_FILE_FOOTER` in `webserver_config.py` for arbitrary python code to `FILE_HEADER` and `FILE_FOOTER` ([#775], [#777]).
16+
- BREAKING: The `.clusterConfig.credentialsSecret` field has been renamed to `.clusterConfig.credentialsSecretName` for consistency ([#754]).
17+
- BREAKING: Implement generic database connection.
18+
This means you need to replace your simple database connection string with a typed struct.
19+
This struct is consistent between different CRDs, so that you can easily copy/paste it between stacklets.
20+
Read on the [Airflow database documentation](https://docs.stackable.tech/home/nightly/airflow/usage-guide/database-connections) for details ([#754]).
1621

1722
### Fixed
1823

@@ -25,6 +30,7 @@
2530
[#774]: https://github.com/stackabletech/airflow-operator/pull/774
2631
[#775]: https://github.com/stackabletech/airflow-operator/pull/775
2732
[#777]: https://github.com/stackabletech/airflow-operator/pull/777
33+
[#754]: https://github.com/stackabletech/airflow-operator/pull/754
2834

2935
## [26.3.0] - 2026-03-16
3036

Cargo.lock

Lines changed: 40 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)