From 31d3de535ebba8503ddcf47f0209950eeca5ef9c Mon Sep 17 00:00:00 2001 From: dervoeti Date: Tue, 6 Jan 2026 13:57:45 +0100 Subject: [PATCH 1/3] fix: add kubectl and openssl to testing-tools --- testing-tools/Dockerfile | 8 ++++++++ testing-tools/boil-config.toml | 1 + 2 files changed, 9 insertions(+) diff --git a/testing-tools/Dockerfile b/testing-tools/Dockerfile index 2fd99d9bd..51ca72604 100644 --- a/testing-tools/Dockerfile +++ b/testing-tools/Dockerfile @@ -8,7 +8,9 @@ FROM registry.access.redhat.com/ubi10/ubi-minimal@sha256:28ec2f4662bdc4b0d4893ef ARG PRODUCT_VERSION ARG PYTHON_VERSION +ARG KUBECTL_VERSION ARG RELEASE_VERSION +ARG TARGETARCH ARG STACKABLE_USER_UID ARG STACKABLE_USER_GID ARG STACKABLE_USER_NAME @@ -49,6 +51,7 @@ microdnf install \ gcc \ make \ pkg-config \ + openssl \ openssl-devel \ libxml2-devel \ libxslt-devel \ @@ -70,6 +73,11 @@ python3.12 -m pip install --no-cache-dir -r /stackable/requirements.txt ln -s /usr/bin/python3.12 /usr/bin/python +# Install kubectl +curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl" +install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +rm kubectl + # Added only temporarily to create the user and group, removed again below microdnf install shadow-utils diff --git a/testing-tools/boil-config.toml b/testing-tools/boil-config.toml index 71b7b08b0..35487b91b 100644 --- a/testing-tools/boil-config.toml +++ b/testing-tools/boil-config.toml @@ -1,2 +1,3 @@ [versions."0.3.0".build-arguments] +kubectl-version = "1.35.0" python-version = "3.12" From 738a897b577ceef742c803949bab4397894fd9c4 Mon Sep 17 00:00:00 2001 From: dervoeti Date: Tue, 6 Jan 2026 14:06:48 +0100 Subject: [PATCH 2/3] chore: changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d53baa9e0..1a0f6211a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. - airflow: Bump celery version to 5.5.3 for Airflow 3.x ([#1343]). - testing-tools: refactoring: Split image into multiple images, remove unnecessary components and switch to UBI as base image ([#1354]). - hive: fixed 4.0.1 shaded hive-metastore-opa-authorizer jar by relocating dependencies ([#1356]). +- testing-tools: fix: add kubectl and openssl ([#1367]). ### Removed @@ -30,6 +31,7 @@ All notable changes to this project will be documented in this file. [#1356]: https://github.com/stackabletech/docker-images/pull/1356 [#1357]: https://github.com/stackabletech/docker-images/pull/1357 [#1358]: https://github.com/stackabletech/docker-images/pull/1358 +[#1367]: https://github.com/stackabletech/docker-images/pull/1367 ## [25.11.0] - 2025-11-07 From d323b0fa0bc267c43e5c657a79bd4296a79f8131 Mon Sep 17 00:00:00 2001 From: dervoeti Date: Tue, 6 Jan 2026 14:07:54 +0100 Subject: [PATCH 3/3] docs: add comment about kubectl version --- testing-tools/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/testing-tools/Dockerfile b/testing-tools/Dockerfile index 51ca72604..aded0402c 100644 --- a/testing-tools/Dockerfile +++ b/testing-tools/Dockerfile @@ -74,6 +74,7 @@ python3.12 -m pip install --no-cache-dir -r /stackable/requirements.txt ln -s /usr/bin/python3.12 /usr/bin/python # Install kubectl +# Get latest stable version from curl -L -s https://dl.k8s.io/release/stable.txt curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl" install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl rm kubectl