File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Fixed
6
6
7
+ - Don't panic on invalid authorization config. Previously, a missing OPA ConfigMap would crash the operator ([ #667 ] ).
7
8
- getting_started: Add a 120 second timeout before trying to enable the DAG ([ #665 ] ).
8
9
9
10
[ #665 ] : https://github.com/stackabletech/airflow-operator/pull/665
11
+ [ #667 ] : https://github.com/stackabletech/airflow-operator/pull/667
10
12
11
13
## [ 25.7.0] - 2025-07-23
12
14
Original file line number Diff line number Diff line change @@ -346,6 +346,11 @@ pub enum Error {
346
346
347
347
#[ snafu( display( "failed to configure service" ) ) ]
348
348
ServiceConfiguration { source : crate :: service:: Error } ,
349
+
350
+ #[ snafu( display( "invalid authorization config" ) ) ]
351
+ InvalidAuthorizationConfig {
352
+ source : stackable_operator:: commons:: opa:: Error ,
353
+ } ,
349
354
}
350
355
351
356
type Result < T , E = Error > = std:: result:: Result < T , E > ;
@@ -390,7 +395,7 @@ pub async fn reconcile_airflow(
390
395
& airflow. spec . cluster_config . authorization ,
391
396
)
392
397
. await
393
- . unwrap ( ) ;
398
+ . context ( InvalidAuthorizationConfigSnafu ) ? ;
394
399
395
400
let mut roles = HashMap :: new ( ) ;
396
401
@@ -918,7 +923,7 @@ fn build_server_rolegroup_statefulset(
918
923
"kubectl.kubernetes.io/default-container" ,
919
924
format ! ( "{}" , Container :: Airflow ) ,
920
925
) )
921
- . unwrap ( ) ,
926
+ . expect ( "static annotation is always valid" ) ,
922
927
)
923
928
. build ( ) ;
924
929
You can’t perform that action at this time.
0 commit comments