Skip to content

Commit 1f8b934

Browse files
authored
fix: Airflow demo fixes pre-26.3 (#380)
* demo fixes * use v1alpha2, corrected pem mount * fix docs and remove mount not used by patch
1 parent c6c4d89 commit 1f8b934

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

demos/airflow-scheduled-job/create-trino-tables.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
serviceAccountName: demo-serviceaccount
1010
containers:
1111
- name: create-tables-in-trino
12-
image: oci.stackable.tech/sdp/testing-tools:0.3.0-stackable0.0.0-dev
12+
image: oci.stackable.tech/sdp/testing-tools/trino:0.3.0-stackable0.0.0-dev
1313
command: ["bash", "-c", "python -u /tmp/script/script.py"]
1414
volumeMounts:
1515
- name: script

docs/modules/demos/pages/airflow-scheduled-job.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ The patch also sets some environment variables that can be used to change the fr
283283
[source,yaml]
284284
----
285285
---
286-
apiVersion: airflow.stackable.tech/v1alpha1
286+
apiVersion: airflow.stackable.tech/v1alpha2
287287
kind: AirflowCluster
288288
metadata:
289289
name: airflow
@@ -293,8 +293,6 @@ spec:
293293
- name: airflow-dags
294294
mountPath: /dags/dag_factory.py
295295
subPath: dag_factory.py
296-
- name: kafka-tls-pem
297-
mountPath: /stackable/kafka-tls-pem
298296
webservers:
299297
roleGroups:
300298
default:

stacks/airflow/airflow.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# {% raw %}
3-
apiVersion: airflow.stackable.tech/v1alpha1
3+
apiVersion: airflow.stackable.tech/v1alpha2
44
kind: AirflowCluster
55
metadata:
66
name: airflow
@@ -74,7 +74,7 @@ spec:
7474
spec:
7575
containers:
7676
- name: airflow
77-
image: oci.stackable.tech/sdp/airflow:3.0.6-stackable0.0.0-dev
77+
image: oci.stackable.tech/sdp/airflow:3.1.6-stackable0.0.0-dev
7878
imagePullPolicy: IfNotPresent
7979
env:
8080
- name: NAMESPACE
@@ -102,7 +102,7 @@ spec:
102102
spec:
103103
containers:
104104
- name: base
105-
image: oci.stackable.tech/sdp/airflow:3.0.6-stackable0.0.0-dev
105+
image: oci.stackable.tech/sdp/airflow:3.1.6-stackable0.0.0-dev
106106
imagePullPolicy: IfNotPresent
107107
env:
108108
- name: AWS_SECRET_ACCESS_KEY

stacks/airflow/patch_airflow.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: airflow.stackable.tech/v1alpha1
2+
apiVersion: airflow.stackable.tech/v1alpha2
33
kind: AirflowCluster
44
metadata:
55
name: airflow
@@ -9,8 +9,6 @@ spec:
99
- name: airflow-dags
1010
mountPath: /dags/dag_factory.py
1111
subPath: dag_factory.py
12-
- name: kafka-tls-pem
13-
mountPath: /stackable/kafka-tls-pem
1412
webservers:
1513
roleGroups:
1614
default:

0 commit comments

Comments
 (0)