From c77a666a2a43002506f05428399d1a85eb617863 Mon Sep 17 00:00:00 2001 From: Abdullah Al Masood Date: Tue, 17 Nov 2026 11:06:01 +0600 Subject: [PATCH 1/2] Advertise per-pod external listener when external access is enabled Signed-off-by: Abdullah Al Masood --- kafka/scripts/entrypoint.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kafka/scripts/entrypoint.sh b/kafka/scripts/entrypoint.sh index 2742758..3f9435a 100644 --- a/kafka/scripts/entrypoint.sh +++ b/kafka/scripts/entrypoint.sh @@ -10,6 +10,7 @@ temp_apply_config="/opt/kafka/config/temp-config/apply.config.properties" temp_operator_config="/opt/kafka/config/temp-config/config.properties" temp_ssl_config="/opt/kafka/config/temp-config/ssl.properties" temp_clientauth_config="/opt/kafka/config/temp-config/clientauth.properties" +external_listeners_config="/opt/kafka/config/temp-config/external-listeners.properties" # Kafka KRaft configuration files controller_config="/opt/kafka/config/kraft/controller.properties" broker_config="/opt/kafka/config/kraft/broker.properties" @@ -85,6 +86,17 @@ update_advertised_listeners() { modified_elements+=("$element") # Skip modification fi done + # The operator mounts this file only when external access is enabled. It has one + # =EXTERNAL://
: line per broker. + if [[ -f "$external_listeners_config" ]]; then + external_listener=$(grep "^$HOSTNAME=" "$external_listeners_config" | cut -d'=' -f 2-) + # Starting without it would leave this broker unreachable for external clients after bootstrap + if [[ -z "$external_listener" ]]; then + echo "Error: no external listener found for $HOSTNAME in $external_listeners_config" >&2 + exit 1 + fi + modified_elements+=("$external_listener") + fi # Join the modified elements into a string using commas as delimiters output_string=$(IFS=','; echo "${modified_elements[*]}") advertised_listeners=$output_string From 2fa2b0531630a84c33e57f7c8c6e36e769b6aebf Mon Sep 17 00:00:00 2001 From: Abdullah Al Masood Date: Tue, 17 Nov 2026 14:02:08 +0600 Subject: [PATCH 2/2] Pin GitHub Actions to full-length commit SHAs The org requires actions to be pinned to a full-length commit SHA, so the ci and release workflows failed at setup. Pin them and bump to the versions pgpool2 uses. Signed-off-by: Abdullah Al Masood --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ebe9b2..3e1cdbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Print version info id: semver @@ -26,10 +26,10 @@ jobs: - name: Set up QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 - name: Build kafka run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e85d4e3..ca9f251 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Print version info id: semver @@ -27,13 +27,13 @@ jobs: - name: Set up QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0 with: registry: ghcr.io username: ${{ github.actor }}