Skip to content

Commit d8cae9f

Browse files
authored
feat: install yq in tools image (#912)
* feat(tools): install yq * changelog * review feedback * explain why yq is needed
1 parent 8b3c3c6 commit d8cae9f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file.
2323
- kafka: Add cyrus-sasl-gssapi package for kerberos ([#874]).
2424
- spark: Add HBase connector ([#878], [#882]).
2525
- hbase: hbase-entrypoint.sh script to start and gracefully stop services ([#898]).
26+
- tools: install yq command line tool for YAML manipulation ([#912]).
2627

2728
### Changed
2829

@@ -95,6 +96,7 @@ All notable changes to this project will be documented in this file.
9596
[#903]: https://github.com/stackabletech/docker-images/pull/903
9697
[#907]: https://github.com/stackabletech/docker-images/pull/907
9798
[#910]: https://github.com/stackabletech/docker-images/pull/910
99+
[#912]: https://github.com/stackabletech/docker-images/pull/912
98100

99101
## [24.7.0] - 2024-07-24
100102

tools/Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ARG PRODUCT
77
ARG KUBECTL_VERSION
88
ARG RELEASE
99
ARG JQ_VERSION
10+
ARG YQ_VERSION
1011
ARG TARGETARCH
1112
ARG STACKABLE_USER_UID
1213

@@ -44,6 +45,12 @@ curl "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux
4445
-o /stackable/bin/jq
4546
chmod +x /stackable/bin/jq
4647

48+
# Needed to to patch manifests in OLM environments with tolerations
49+
# and environment variables.
50+
curl "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_${TARGETARCH}" \
51+
-o /stackable/bin/yq
52+
chmod +x /stackable/bin/yq
53+
4754
# All files and folders owned by root group to support running as arbitrary users.
4855
# This is best practice as all container users will belong to the root group (0).
4956
chown -R ${STACKABLE_USER_UID}:0 /stackable

tools/versions.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"kubectl_version": "1.31.1",
55
"jq_version": "1.7.1",
66
"stackable-base": "1.0.0",
7+
"yq_version": "4.44.3",
78
},
89
]

0 commit comments

Comments
 (0)