Skip to content

Commit 91582f6

Browse files
authored
chore(docs): Update getting-started script pre-25.3.0 (#595)
* chore: Bump postgresql and redis chart version * chore: Use OCI registries for Helm chart installation * chore: Fix typo
1 parent 3ac47c5 commit 91582f6

File tree

4 files changed

+24
-28
lines changed

4 files changed

+24
-28
lines changed

docs/modules/airflow/examples/getting_started/code/getting_started.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ then
1818
fi
1919

2020
echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redis)"
21-
# tag::helm-add-bitnami-repo[]
22-
helm repo add bitnami https://charts.bitnami.com/bitnami
23-
# end::helm-add-bitnami-repo[]
2421
# tag::helm-add-bitnami-pgs[]
25-
helm install --wait airflow-postgresql bitnami/postgresql --version 12.1.5 \
26-
--set auth.username=airflow \
27-
--set auth.password=airflow \
28-
--set auth.database=airflow
22+
helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \
23+
--version 16.5.0 \
24+
--set auth.database=airflow \
25+
--set auth.username=airflow \
26+
--set auth.password=airflow \
27+
--wait
2928
# end::helm-add-bitnami-pgs[]
3029
# tag::helm-add-bitnami-redis[]
31-
helm install --wait airflow-redis bitnami/redis \
32-
--set auth.password=redis \
33-
--version 17.3.7 \
34-
--set replica.replicaCount=1
30+
helm install airflow-redis oci://registry-1.docker.io/bitnamicharts/redis \
31+
--version 20.11.3 \
32+
--set replica.replicaCount=1 \
33+
--set auth.password=redis \
34+
--wait
3535
# end::helm-add-bitnami-redis[]
3636

3737
case "$1" in

docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ then
1818
fi
1919

2020
echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redis)"
21-
# tag::helm-add-bitnami-repo[]
22-
helm repo add bitnami https://charts.bitnami.com/bitnami
23-
# end::helm-add-bitnami-repo[]
2421
# tag::helm-add-bitnami-pgs[]
25-
helm install --wait airflow-postgresql bitnami/postgresql --version {{ versions.postgresql }} \
26-
--set auth.username=airflow \
27-
--set auth.password=airflow \
28-
--set auth.database=airflow
22+
helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \
23+
--version {{ versions.postgresql }} \
24+
--set auth.database=airflow \
25+
--set auth.username=airflow \
26+
--set auth.password=airflow \
27+
--wait
2928
# end::helm-add-bitnami-pgs[]
3029
# tag::helm-add-bitnami-redis[]
31-
helm install --wait airflow-redis bitnami/redis \
32-
--set auth.password=redis \
33-
--version {{ versions.redis }} \
34-
--set replica.replicaCount=1
30+
helm install airflow-redis oci://registry-1.docker.io/bitnamicharts/redis \
31+
--version {{ versions.redis }} \
32+
--set replica.replicaCount=1 \
33+
--set auth.password=redis \
34+
--wait
3535
# end::helm-add-bitnami-redis[]
3636

3737
case "$1" in

docs/modules/airflow/pages/getting_started/installation.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ They are components that may well already be available for customers, in which c
1111
Install these components using Helm.
1212
Note that specific versions are declared:
1313

14-
[source,bash]
15-
----
16-
include::example$getting_started/code/getting_started.sh[tag=helm-add-bitnami-repo]
17-
----
1814
[source,bash]
1915
----
2016
include::example$getting_started/code/getting_started.sh[tag=helm-add-bitnami-pgs]

docs/templating_vars.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ versions:
77
secret: 0.0.0-dev
88
listener: 0.0.0-dev
99
airflow: 0.0.0-dev
10-
postgresql: 12.1.5
11-
redis: 17.3.7
10+
postgresql: 16.5.0
11+
redis: 20.11.3

0 commit comments

Comments
 (0)