Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

### Fixed

- Don't panic on invalid authorization config. Previously, a missing OPA ConfigMap would crash the operator ([#667]).
- getting_started: Add a 120 second timeout before trying to enable the DAG ([#665]).

[#665]: https://github.com/stackabletech/airflow-operator/pull/665
[#667]: https://github.com/stackabletech/airflow-operator/pull/667

## [25.7.0] - 2025-07-23

Expand Down
9 changes: 7 additions & 2 deletions rust/operator-binary/src/airflow_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ pub enum Error {

#[snafu(display("failed to configure service"))]
ServiceConfiguration { source: crate::service::Error },

#[snafu(display("invalid authorization config"))]
InvalidAuthorizationConfig {
source: stackable_operator::commons::opa::Error,
},
}

type Result<T, E = Error> = std::result::Result<T, E>;
Expand Down Expand Up @@ -390,7 +395,7 @@ pub async fn reconcile_airflow(
&airflow.spec.cluster_config.authorization,
)
.await
.unwrap();
.context(InvalidAuthorizationConfigSnafu)?;

let mut roles = HashMap::new();

Expand Down Expand Up @@ -918,7 +923,7 @@ fn build_server_rolegroup_statefulset(
"kubectl.kubernetes.io/default-container",
format!("{}", Container::Airflow),
))
.unwrap(),
.expect("static annotation is always valid"),
)
.build();

Expand Down