Skip to content

Commit

Permalink
Merge branch 'main' into update-release-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedweber committed Nov 25, 2024
2 parents 0bd16a8 + d07f9bd commit 553b0cf
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 46 deletions.
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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ SHELL=/usr/bin/env bash -euo pipefail
render-readme:
scripts/render_readme.sh

render-docs:
scripts/docs_templating.sh

## Docker related targets
docker-build:
docker build --force-rm --build-arg VERSION=${VERSION} -t "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-${ARCH}" -f docker/Dockerfile .
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.

Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@
set -euo pipefail

# DO NOT EDIT THE SCRIPT
# Instead, update the j2 template, and regenerate it for dev:
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
# helm:
# repo_name: stackable-dev
# repo_url: https://repo.stackable.tech/repository/helm-dev/
# versions:
# commons: 0.0.0-dev
# secret: 0.0.0-dev
# listener: 0.0.0-dev
# airflow: 0.0.0-dev
# postgresql: 12.1.5
# redis: 17.3.7
# EOF
# Instead, update the j2 template, and regenerate it for dev with `make render-docs`.

# This script contains all the code snippets from the guide, as well as some assert tests
# to test if the instructions in the guide work. The user *could* use it, but it is intended
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@
set -euo pipefail

# DO NOT EDIT THE SCRIPT
# Instead, update the j2 template, and regenerate it for dev:
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
# helm:
# repo_name: stackable-dev
# repo_url: https://repo.stackable.tech/repository/helm-dev/
# versions:
# commons: 0.0.0-dev
# secret: 0.0.0-dev
# listener: 0.0.0-dev
# airflow: 0.0.0-dev
# postgresql: 12.1.5
# redis: 17.3.7
# EOF
# Instead, update the j2 template, and regenerate it for dev with `make render-docs`.

# This script contains all the code snippets from the guide, as well as some assert tests
# to test if the instructions in the guide work. The user *could* use it, but it is intended
Expand Down
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

0 comments on commit 553b0cf

Please sign in to comment.