From 8ffd43a3c98afc88f1f4bfc15158efb113f3e427 Mon Sep 17 00:00:00 2001 From: Maxi Wittich Date: Tue, 14 Jan 2025 15:12:23 +0100 Subject: [PATCH 1/2] Enable Auth_Roles_Mapping as configOverride --- rust/crd/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/crd/src/lib.rs b/rust/crd/src/lib.rs index 5b7460a5..38d7e1ed 100644 --- a/rust/crd/src/lib.rs +++ b/rust/crd/src/lib.rs @@ -112,6 +112,7 @@ pub enum AirflowConfigOptions { AuthLdapTlsKeyfile, AuthLdapTlsCacertfile, AuthLdapAllowSelfSigned, + AuthRolesMapping, } impl FlaskAppConfigOptions for AirflowConfigOptions { @@ -137,6 +138,7 @@ impl FlaskAppConfigOptions for AirflowConfigOptions { AirflowConfigOptions::AuthLdapTlsKeyfile => PythonType::StringLiteral, AirflowConfigOptions::AuthLdapTlsCacertfile => PythonType::StringLiteral, AirflowConfigOptions::AuthLdapAllowSelfSigned => PythonType::BoolLiteral, + AirflowConfigOptions::AuthRolesMapping => PythonType::StringLiteral, } } } From d56fc644f22ffea9bcacdee7dd03a54aba963b83 Mon Sep 17 00:00:00 2001 From: Maxi Wittich Date: Tue, 14 Jan 2025 15:50:23 +0100 Subject: [PATCH 2/2] Rather have an expression as it's a dict --- rust/crd/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/crd/src/lib.rs b/rust/crd/src/lib.rs index 38d7e1ed..2779324c 100644 --- a/rust/crd/src/lib.rs +++ b/rust/crd/src/lib.rs @@ -138,7 +138,7 @@ impl FlaskAppConfigOptions for AirflowConfigOptions { AirflowConfigOptions::AuthLdapTlsKeyfile => PythonType::StringLiteral, AirflowConfigOptions::AuthLdapTlsCacertfile => PythonType::StringLiteral, AirflowConfigOptions::AuthLdapAllowSelfSigned => PythonType::BoolLiteral, - AirflowConfigOptions::AuthRolesMapping => PythonType::StringLiteral, + AirflowConfigOptions::AuthRolesMapping => PythonType::Expression, } } }