Skip to content

Commit 506ab62

Browse files
Jarvlpotiuk
andauthored
Update pgbouncer to 1.23.1 and pgbouncer_exporter to 0.18.0 in helm chart (apache#47416)
* Upgrade pgbouncer_exporter to 0.18.0 - Upgrades pgbouncer_exporter to 0.18.0 - Bumps Airflow pgbouncer_exporter version to current date (2025-03-05) - Bumps expected Go version to 1.23.7 per pgbouncer_exporter release notes * Update helm chart default pgbouncer_exporter image to 0.18.0 * Add newline to 47416.misc.rst * Update chart/newsfragments/47416.misc.rst * fixup! Update chart/newsfragments/47416.misc.rst * Bump pgbouncer to version 1.23.1 * Change to significant news fragment * Update newsfragment content --------- Co-authored-by: Jarek Potiuk <[email protected]>
1 parent 58f4ce0 commit 506ab62

File tree

6 files changed

+21
-11
lines changed

6 files changed

+21
-11
lines changed

chart/dockerfiles/pgbouncer-exporter/build_and_push.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ readonly DOCKERHUB_USER
2121
DOCKERHUB_REPO=${DOCKERHUB_REPO:="airflow"}
2222
readonly DOCKERHUB_REPO
2323

24-
PGBOUNCER_EXPORTER_VERSION="0.17.0"
24+
PGBOUNCER_EXPORTER_VERSION="0.18.0"
2525
readonly PGBOUNCER_EXPORTER_VERSION
2626

27-
AIRFLOW_PGBOUNCER_EXPORTER_VERSION="2024.06.18"
27+
AIRFLOW_PGBOUNCER_EXPORTER_VERSION="2025.03.05"
2828
readonly AIRFLOW_PGBOUNCER_EXPORTER_VERSION
2929

30-
EXPECTED_GO_VERSION="1.22.4"
30+
EXPECTED_GO_VERSION="1.23.7"
3131
readonly EXPECTED_GO_VERSION
3232

3333
COMMIT_SHA=$(git rev-parse HEAD)

chart/dockerfiles/pgbouncer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ARG ALPINE_VERSION="3.19"
1818
FROM alpine:${ALPINE_VERSION} AS builder
1919
SHELL ["/bin/ash", "-e", "-x", "-c", "-o", "pipefail"]
2020

21+
ARG PGBOUNCER_TAG
2122
ARG PGBOUNCER_VERSION
2223
ARG AIRFLOW_PGBOUNCER_VERSION
2324

@@ -30,7 +31,7 @@ RUN apk --no-cache add make pkgconfig build-base libtool wget gcc g++ libevent-d
3031
# We are not using Dash so we can safely ignore the "Dash warning"
3132
# "In dash, something is not supported." https://github.com/koalaman/shellcheck/wiki/SC2169
3233
# hadolint ignore=SC2169,SC3060
33-
RUN wget --progress=dot:giga "https://github.com/pgbouncer/pgbouncer/releases/download/pgbouncer_${PGBOUNCER_VERSION//\./_}/pgbouncer-${PGBOUNCER_VERSION}.tar.gz" \
34+
RUN wget --progress=dot:giga "https://github.com/pgbouncer/pgbouncer/releases/download/${PGBOUNCER_TAG}/pgbouncer-${PGBOUNCER_VERSION}.tar.gz" \
3435
&& echo "${PGBOUNCER_SHA256} pgbouncer-${PGBOUNCER_VERSION}.tar.gz" | sha256sum -c - \
3536
&& tar -xzvf pgbouncer-$PGBOUNCER_VERSION.tar.gz
3637

chart/dockerfiles/pgbouncer/build_and_push.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ readonly DOCKERHUB_USER
2222
DOCKERHUB_REPO=${DOCKERHUB_REPO:="airflow"}
2323
readonly DOCKERHUB_REPO
2424

25-
PGBOUNCER_VERSION="1.24.0"
25+
# Sometimes the pgbouncer tag does not reliably correspond with the version name
26+
# For example, it may have a `-fixed` suffix
27+
PGBOUNCER_TAG="pgbouncer_1_23_1-fixed"
28+
readonly PGBOUNCER_TAG
29+
30+
PGBOUNCER_VERSION="1.23.1"
2631
readonly PGBOUNCER_VERSION
2732

28-
PGBOUNCER_SHA256="e76adf941a3191a416e223c0b2cdbf73159eef80a2a32314af6fbd82e41a1d41"
33+
PGBOUNCER_SHA256="1963b497231d9a560a62d266e4a2eae6881ab401853d93e5d292c3740eec5084"
2934
readonly PGBOUNCER_SHA256
3035

31-
AIRFLOW_PGBOUNCER_VERSION="2025.01.10"
36+
AIRFLOW_PGBOUNCER_VERSION="2025.03.05"
3237
readonly AIRFLOW_PGBOUNCER_VERSION
3338

3439
COMMIT_SHA=$(git rev-parse HEAD)
@@ -58,6 +63,7 @@ docker buildx build . \
5863
--platform linux/amd64,linux/arm64 \
5964
--pull \
6065
--push \
66+
--build-arg "PGBOUNCER_TAG=${PGBOUNCER_TAG}" \
6167
--build-arg "PGBOUNCER_VERSION=${PGBOUNCER_VERSION}" \
6268
--build-arg "AIRFLOW_PGBOUNCER_VERSION=${AIRFLOW_PGBOUNCER_VERSION}"\
6369
--build-arg "PGBOUNCER_SHA256=${PGBOUNCER_SHA256}"\
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Decrements pgbouncer exporter to 1.23.1 and updates pgbouncer_exporter to v0.18.0
2+
3+
The chart uses newer version of pgbouncer exporter - ``airflow-pgbouncer-exporter-2025.03.05-0.18.0`` and decrements the version of pgbouncer to ``airflow-pgbouncer-2025.03.05-1.23.1`` previously ``airflow-pgbouncer-2025.01.10-1.24.0``, to provide compatibility with ``airflow-pgbouncer-exporter-2025.03.05-0.18.0``.

chart/values.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@
887887
"tag": {
888888
"description": "The PgBouncer image tag.",
889889
"type": "string",
890-
"default": "airflow-pgbouncer-2025.01.10-1.24.0"
890+
"default": "airflow-pgbouncer-2025.03.05-1.23.1"
891891
},
892892
"pullPolicy": {
893893
"description": "The PgBouncer image pull policy.",
@@ -914,7 +914,7 @@
914914
"tag": {
915915
"description": "The PgBouncer exporter image tag.",
916916
"type": "string",
917-
"default": "airflow-pgbouncer-exporter-2024.06.18-0.17.0"
917+
"default": "airflow-pgbouncer-exporter-2025.03.05-0.18.0"
918918
},
919919
"pullPolicy": {
920920
"description": "The PgBouncer exporter image pull policy.",

chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ images:
115115
pullPolicy: IfNotPresent
116116
pgbouncer:
117117
repository: apache/airflow
118-
tag: airflow-pgbouncer-2025.01.10-1.24.0
118+
tag: airflow-pgbouncer-2025.03.05-1.23.1
119119
pullPolicy: IfNotPresent
120120
pgbouncerExporter:
121121
repository: apache/airflow
122-
tag: airflow-pgbouncer-exporter-2024.06.18-0.17.0
122+
tag: airflow-pgbouncer-exporter-2025.03.05-0.18.0
123123
pullPolicy: IfNotPresent
124124
gitSync:
125125
repository: registry.k8s.io/git-sync/git-sync

0 commit comments

Comments
 (0)