Skip to content

Commit

Permalink
Merge branch 'main' into docs/restart
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan authored Oct 30, 2023
2 parents d469cdf + 4a2a5b2 commit 3da0c4c
Show file tree
Hide file tree
Showing 21 changed files with 126 additions and 62 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,31 @@
- [BREAKING] Implement KubernetesExecutor ([#311]).
- Default stackableVersion to operator version ([#312]).
- Support PodDisruptionBudgets ([#330]).
- Added support for versions 2.6.3, 2.7.2 ([#334]).

### Changed

- [BREAKING] Consolidated `spec.clusterConfig.authenticationConfig` to `spec.clusterConfig.authentication` which now takes a vector of AuthenticationClass references ([#303]).
- `vector` `0.26.0` -> `0.31.0` ([#308]).
- `operator-rs` `0.44.0` -> `0.52.1` ([#308], [#330]).
- `vector` `0.26.0` -> `0.33.0` ([#308], [#334]).
- `operator-rs` `0.44.0` -> `0.55.0` ([#308], [#330], [#334]).
- [BREAKING] Removed AirflowDB object, since it created some problems when reinstalling or upgrading an Airflow cluster. Instead, the initialization of the database was moved to the startup phase of each scheduler pod. To make sure the initialization does not run in parallel, the `PodManagementPolicy` of the scheduler StatefulSet was set to `OrderedReady`. The `.spec.clusterConfig.databaseInitialization` option was removed from the CRD, since it was just there to enable logging for the database initialization Job, which doesn't exist anymore ([#322]).

### Fixed

- BREAKING: Rename Service port name from `airflow` to `http` for consistency reasons. This change should normally not be breaking, as we only change the name, not the port. However, there might be some e.g. Ingresses that rely on the port name and need to be updated ([#316]).
- Fix user-supplied gitsync git-config settings ([#335]).

### Removed

- Removed support for 2.2.3, 2.2.4, 2.2.5, 2.4.1 ([#334]).

[#303]: https://github.com/stackabletech/airflow-operator/pull/303
[#308]: https://github.com/stackabletech/airflow-operator/pull/308
[#311]: https://github.com/stackabletech/airflow-operator/pull/311
[#312]: https://github.com/stackabletech/airflow-operator/pull/312
[#316]: https://github.com/stackabletech/airflow-operator/pull/316
[#330]: https://github.com/stackabletech/airflow-operator/pull/330
[#334]: https://github.com/stackabletech/airflow-operator/pull/334
[#335]: https://github.com/stackabletech/airflow-operator/pull/335

## [23.7.0] - 2023-07-14
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.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.7"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.52.1" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.55.0" }
strum = { version = "0.25", features = ["derive"] }
tokio = { version = "1.29", features = ["full"] }
tracing = "0.1"
Expand Down
112 changes: 84 additions & 28 deletions deploy/helm/airflow-operator/crds/crds.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: false
exposeConfig: false
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/airflow/examples/example-airflow-gitsync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: airflow
spec:
image:
productVersion: "2.6.1"
productVersion: "2.7.2"
clusterConfig:
loadExamples: false
exposeConfig: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: false
exposeConfig: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: true
exposeConfig: false
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/airflow/pages/usage-guide/security.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metadata:
name: airflow-with-ldap
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
authentication:
- authenticationClass: ldap # <1>
Expand Down
8 changes: 3 additions & 5 deletions docs/modules/airflow/partials/supported-versions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This is a separate file, since it is used by both the direct Airflow-Operator documentation, and the overarching
// Stackable Platform documentation.

- 2.2.3
- 2.2.4
- 2.2.5
- 2.4.1
- 2.6.1
- 2.7.2
- 2.6.3
- 2.6.1 (deprecated)
2 changes: 1 addition & 1 deletion examples/simple-airflow-cluster-dags-cmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ metadata:
name: airflow-dags-cmap
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
stackableVersion: 0.0.0-dev
clusterConfig:
loadExamples: false
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-airflow-cluster-ldap-insecure-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ metadata:
name: airflow-insecure-tls
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
stackableVersion: 0.0.0-dev
clusterConfig:
loadExamples: true
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-airflow-cluster-ldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ metadata:
name: airflow-with-ldap-server-veri-tls
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
stackableVersion: 0.0.0-dev
clusterConfig:
loadExamples: true
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-airflow-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ metadata:
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
stackableVersion: 0.0.0-dev
clusterConfig:
loadExamples: true
Expand Down
4 changes: 2 additions & 2 deletions rust/crd/src/affinity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ mod tests {
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
loadExamples: true
exposeConfig: false
credentialsSecret: simple-airflow-credentials
Expand Down Expand Up @@ -159,7 +159,7 @@ mod tests {
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
loadExamples: true
exposeConfig: false
credentialsSecret: simple-airflow-credentials
Expand Down
6 changes: 3 additions & 3 deletions rust/crd/src/git_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mod tests {
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: false
exposeConfig: false
Expand Down Expand Up @@ -116,7 +116,7 @@ mod tests {
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: false
exposeConfig: false
Expand Down Expand Up @@ -189,7 +189,7 @@ mod tests {
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: false
exposeConfig: false
Expand Down
4 changes: 2 additions & 2 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ mod tests {
name: airflow
spec:
image:
productVersion: 2.6.1
productVersion: 2.7.2
clusterConfig:
loadExamples: true
exposeConfig: true
Expand All @@ -737,7 +737,7 @@ mod tests {
let resolved_airflow_image: ResolvedProductImage =
cluster.spec.image.resolve("airflow", "0.0.0-dev");

assert_eq!("2.6.1", &resolved_airflow_image.product_version);
assert_eq!("2.7.2", &resolved_airflow_image.product_version);

assert_eq!("KubernetesExecutor", cluster.spec.executor.to_string());
assert!(cluster.spec.cluster_config.load_examples.unwrap_or(false));
Expand Down
2 changes: 1 addition & 1 deletion rust/operator-binary/src/airflow_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ use stackable_operator::{
product_image_selection::ResolvedProductImage,
rbac::build_rbac_resources,
},
duration::Duration,
k8s_openapi::{
api::{
apps::v1::{StatefulSet, StatefulSetSpec},
Expand Down Expand Up @@ -69,6 +68,7 @@ use stackable_operator::{
compute_conditions, operations::ClusterOperationsConditionBuilder,
statefulset::StatefulSetConditionBuilder,
},
time::Duration,
};
use std::{
collections::{BTreeMap, HashMap},
Expand Down
2 changes: 1 addition & 1 deletion rust/operator-binary/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::collections::BTreeMap;

pub const PYTHON_IMPORTS: &[&str] = &[
"import os",
"from airflow.www.fab_security.manager import (AUTH_DB, AUTH_LDAP, AUTH_OAUTH, AUTH_OID, AUTH_REMOTE_USER)",
"from flask_appbuilder.const import (AUTH_DB, AUTH_LDAP, AUTH_OAUTH, AUTH_OID, AUTH_REMOTE_USER)",
"basedir = os.path.abspath(os.path.dirname(__file__))",
"WTF_CSRF_ENABLED = True",
];
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/ldap/06-install-airflow-cluster.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ commands:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
# There are some OOM kill events when using celery executor with the default (currently 1.75Gi)
# resources and version 2.7.2, so we provide more memory here.
resources:
memory:
limit: '2.5Gi'
roleGroups:
default:
replicas: 1
Expand Down
7 changes: 3 additions & 4 deletions tests/test-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
dimensions:
- name: airflow
values:
- 2.2.4
- 2.2.5
- 2.4.1
- 2.6.1
- 2.6.3
- 2.7.2
- name: airflow-latest
values:
- 2.6.1
- 2.7.2
- name: ldap-authentication
values:
- no-tls
Expand Down

0 comments on commit 3da0c4c

Please sign in to comment.