Skip to content

Commit 2cd64a4

Browse files
davidspekrauerhans
andauthored
feat(airflow): upgrade airflow to 2.6.0 (#677)
* update chart + add support for plural redis app Signed-off-by: David van der Spek <[email protected]> * fix oidc for newer auth lib Signed-off-by: David van der Spek <[email protected]> * bump app version * bump image version * ignore vscode workspace files * fix redis default, empty string, overwrite by tpl * cleanup old airflow image building CI Signed-off-by: David van der Spek <[email protected]> * bump chart Signed-off-by: David van der Spek <[email protected]> --------- Signed-off-by: David van der Spek <[email protected]> Co-authored-by: Hans Rauer <[email protected]>
1 parent fd3c985 commit 2cd64a4

File tree

15 files changed

+50
-66
lines changed

15 files changed

+50
-66
lines changed

.github/workflows/docker.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,6 @@ jobs:
5656
docker build -f sentry/Dockerfile -t gcr.io/pluralsh/getsentry/sentry:21.5.1-extended -t dkr.plural.sh/sentry/sentry:21.5.1-extended .
5757
docker push gcr.io/pluralsh/getsentry/sentry:21.5.1-extended
5858
docker push dkr.plural.sh/sentry/sentry:21.5.1-extended
59-
docker-airflow:
60-
runs-on: ubuntu-latest
61-
permissions:
62-
contents: 'read'
63-
id-token: 'write'
64-
steps:
65-
- uses: actions/checkout@v3
66-
- uses: google-github-actions/auth@v1
67-
with:
68-
workload_identity_provider: 'projects/${{ secrets.GOOGLE_PROJECT_ID }}/locations/global/workloadIdentityPools/github/providers/github'
69-
service_account: '[email protected]'
70-
token_format: 'access_token'
71-
create_credentials_file: true
72-
- uses: google-github-actions/[email protected]
73-
- name: Login to gcr
74-
run: gcloud auth configure-docker -q
75-
- name: Login to plural registry
76-
uses: docker/login-action@v2
77-
with:
78-
registry: dkr.plural.sh
79-
80-
password: ${{ secrets.PLURAL_ACCESS_TOKEN }}
81-
- run: |
82-
docker build -t gcr.io/pluralsh/apache/airflow:2.2.5-python3.8-dbt -t dkr.plural.sh/airflow/apache/airflow:2.2.5-python3.8-dbt airflow
83-
docker push gcr.io/pluralsh/apache/airflow:2.2.5-python3.8-dbt
84-
docker push dkr.plural.sh/airflow/apache/airflow:2.2.5-python3.8-dbt
8559
docker-superset:
8660
runs-on: ubuntu-latest
8761
permissions:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.*.swp
33
.DS_Store
44
/.idea/
5+
*.code-workspace

airflow/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

airflow/helm/airflow/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ dependencies:
44
version: 0.1.1
55
- name: airflow
66
repository: https://airflow-helm.github.io/charts
7-
version: 8.5.2
7+
version: 8.6.1
88
- name: postgres
99
repository: https://pluralsh.github.io/module-library
1010
version: 0.1.16
1111
- name: test-base
1212
repository: https://pluralsh.github.io/module-library
1313
version: 0.1.3
14-
digest: sha256:1aafdd32c53f4986f320f15fb2f6c31673100b62e0db1a9ec42deef2c3010b29
15-
generated: "2022-12-30T11:24:13.427115-05:00"
14+
digest: sha256:6289d3b707a41a305fa96650ea599ed9be1f889175d250d648631cb568bced8b
15+
generated: "2023-03-23T14:51:25.535042+01:00"

airflow/helm/airflow/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: airflow
33
description: A Helm chart for airflow deployable on plural
44
type: application
5-
version: 0.3.33
6-
appVersion: "1.16.0"
5+
version: 0.3.34
6+
appVersion: "2.6.0"
77
sources:
88
- https://github.com/pluralsh/plural-artifacts/airflow/helm/airflow
99
maintainers:
@@ -14,7 +14,7 @@ dependencies:
1414
version: 0.1.1
1515
repository: https://pluralsh.github.io/module-library
1616
- name: airflow
17-
version: 8.5.2
17+
version: 8.6.1
1818
repository: https://airflow-helm.github.io/charts
1919
- name: postgres
2020
version: 0.1.16
-126 KB
Binary file not shown.
125 KB
Binary file not shown.

airflow/helm/airflow/deps.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ spec:
1717
name: postgres
1818
repo: postgres
1919
version: '>= 0.1.6'
20+
- type: helm
21+
name: redis
22+
repo: redis
23+
version: '>= 0.1.6'
24+
optional: true
2025
- type: terraform
2126
name: aws
2227
repo: airflow
@@ -31,4 +36,4 @@ spec:
3136
name: gcp
3237
repo: airflow
3338
version: '>= 0.1.1'
34-
optional: true
39+
optional: true

airflow/helm/airflow/templates/secrets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{{- if .Values.airflow.redis.enabled }}
1+
{{- if or .Values.airflow.redis.enabled .Values.secrets.createPluralRedisSecret }}
22
apiVersion: v1
33
kind: Secret
44
metadata:
55
name: airflow-redis-password
6-
stringData:
6+
data:
77
redis-password: {{ .Values.secrets.redis_password | b64enc | quote }}
88
{{- end }}
99
{{- if .Values.sshConfig.enabled }}

airflow/helm/airflow/values.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ httpConfig:
1212
password: dummy
1313

1414
secrets:
15+
createPluralRedisSecret: false
1516
redis_password: example
1617

1718
test-base:
@@ -298,12 +299,19 @@ airflow:
298299

299300
persistence:
300301
enabled: false
302+
303+
externalRedis:
304+
host: ""
305+
port: 6379
306+
databaseNumber: 1
307+
passwordSecret: airflow-redis-password
308+
passwordSecretKey: redis-password
301309

302310
airflow:
303311
executor: CeleryExecutor
304312
image:
305-
repository: dkr.plural.sh/airflow/apache/airflow
306-
tag: 2.1.4-python3.8-dbt-2
313+
repository: ghcr.io/pluralsh/containers/apache/airflow
314+
tag: 2.6.0-python3.10-plural1.4.0
307315

308316
config:
309317
## security
@@ -387,7 +395,7 @@ airflow:
387395
podDisruptionBudget:
388396
enabled: true
389397

390-
maxUnavailable: "20%"
398+
maxUnavailable: "50%"
391399

392400
autoscaling:
393401
enabled: true

0 commit comments

Comments
 (0)