Skip to content

Commit b1f06e7

Browse files
authored
fix: add kubectl and openssl to testing-tools (#1367)
* fix: add kubectl and openssl to testing-tools * chore: changelog * docs: add comment about kubectl version
1 parent 18c6e48 commit b1f06e7

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
1717
- airflow: Bump celery version to 5.5.3 for Airflow 3.x ([#1343]).
1818
- testing-tools: refactoring: Split image into multiple images, remove unnecessary components and switch to UBI as base image ([#1354]).
1919
- hive: fixed 4.0.1 shaded hive-metastore-opa-authorizer jar by relocating dependencies ([#1356]).
20+
- testing-tools: fix: add kubectl and openssl ([#1367]).
2021

2122
### Removed
2223

@@ -30,6 +31,7 @@ All notable changes to this project will be documented in this file.
3031
[#1356]: https://github.com/stackabletech/docker-images/pull/1356
3132
[#1357]: https://github.com/stackabletech/docker-images/pull/1357
3233
[#1358]: https://github.com/stackabletech/docker-images/pull/1358
34+
[#1367]: https://github.com/stackabletech/docker-images/pull/1367
3335

3436
## [25.11.0] - 2025-11-07
3537

testing-tools/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ FROM registry.access.redhat.com/ubi10/ubi-minimal@sha256:28ec2f4662bdc4b0d4893ef
88

99
ARG PRODUCT_VERSION
1010
ARG PYTHON_VERSION
11+
ARG KUBECTL_VERSION
1112
ARG RELEASE_VERSION
13+
ARG TARGETARCH
1214
ARG STACKABLE_USER_UID
1315
ARG STACKABLE_USER_GID
1416
ARG STACKABLE_USER_NAME
@@ -49,6 +51,7 @@ microdnf install \
4951
gcc \
5052
make \
5153
pkg-config \
54+
openssl \
5255
openssl-devel \
5356
libxml2-devel \
5457
libxslt-devel \
@@ -70,6 +73,12 @@ python3.12 -m pip install --no-cache-dir -r /stackable/requirements.txt
7073

7174
ln -s /usr/bin/python3.12 /usr/bin/python
7275

76+
# Install kubectl
77+
# Get latest stable version from curl -L -s https://dl.k8s.io/release/stable.txt
78+
curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl"
79+
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
80+
rm kubectl
81+
7382
# Added only temporarily to create the user and group, removed again below
7483
microdnf install shadow-utils
7584

testing-tools/boil-config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[versions."0.3.0".build-arguments]
2+
kubectl-version = "1.35.0"
23
python-version = "3.12"

0 commit comments

Comments
 (0)