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 @@ -26,6 +26,7 @@

- Pass gitsync credentials through properly and use a fine-grained access token ([#489]).
- Failing to parse one `AirflowCluster`/`AuthenticationClass` should no longer cause the whole operator to stop functioning ([#520]).
- BREAKING: Use distinct ServiceAccounts for the Stacklets, so that multiple Stacklets can be deployed in one namespace. Existing Stacklets will use the newly created ServiceAccounts after restart ([#545]).

[#488]: https://github.com/stackabletech/airflow-operator/pull/488
[#489]: https://github.com/stackabletech/airflow-operator/pull/489
Expand All @@ -35,6 +36,7 @@
[#520]: https://github.com/stackabletech/airflow-operator/pull/520
[#524]: https://github.com/stackabletech/airflow-operator/pull/524
[#530]: https://github.com/stackabletech/airflow-operator/pull/530
[#545]: https://github.com/stackabletech/airflow-operator/pull/545

## [24.7.0] - 2024-07-24

Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.8"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.80.0" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.82.0" }
strum = { version = "0.26", features = ["derive"] }
tokio = { version = "1.40", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions crate-hashes.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions rust/operator-binary/src/airflow_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use stackable_operator::{
apps::v1::{StatefulSet, StatefulSetSpec},
core::v1::{
ConfigMap, EmptyDirVolumeSource, EnvVar, PodTemplateSpec, Probe, Service,
ServicePort, ServiceSpec, TCPSocketAction, VolumeMount,
ServiceAccount, ServicePort, ServiceSpec, TCPSocketAction, VolumeMount,
},
},
apimachinery::pkg::{apis::meta::v1::LabelSelector, util::intstr::IntOrString},
Expand Down Expand Up @@ -416,7 +416,7 @@ pub async fn reconcile_airflow(
build_rbac_resources(airflow, APP_NAME, required_labels).context(BuildRBACObjectsSnafu)?;

let rbac_sa = cluster_resources
.add(client, rbac_sa)
.add(client, rbac_sa.clone())
.await
.context(ApplyServiceAccountSnafu)?;
cluster_resources
Expand Down Expand Up @@ -488,7 +488,7 @@ pub async fn reconcile_airflow(
&rolegroup,
rolegroup_config,
&authentication_config,
&rbac_sa.name_unchecked(),
&rbac_sa,
&merged_airflow_config,
airflow_executor,
)?;
Expand Down Expand Up @@ -836,7 +836,7 @@ fn build_server_rolegroup_statefulset(
rolegroup_ref: &RoleGroupRef<AirflowCluster>,
rolegroup_config: &HashMap<PropertyNameKind, BTreeMap<String, String>>,
authentication_config: &AirflowClientAuthenticationDetailsResolved,
sa_name: &str,
service_account: &ServiceAccount,
merged_airflow_config: &AirflowConfig,
executor: &AirflowExecutor,
) -> Result<StatefulSet> {
Expand All @@ -861,7 +861,7 @@ fn build_server_rolegroup_statefulset(
pb.metadata(pb_metadata)
.image_pull_secrets_from_product_image(resolved_product_image)
.affinity(&merged_airflow_config.affinity)
.service_account_name(sa_name)
.service_account_name(service_account.name_any())
.security_context(
PodSecurityContextBuilder::new()
.run_as_user(AIRFLOW_UID)
Expand Down
Loading