Skip to content

Commit

Permalink
Bump metrics-server version
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <[email protected]>
  • Loading branch information
manuelbuil committed Apr 12, 2024
1 parent 206fa38 commit 0d53b95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/chart_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ charts:
- version: 4.9.100
filename: /charts/rke2-ingress-nginx.yaml
bootstrap: false
- version: 2.11.100-build2023051513
- version: 3.12.001
filename: /charts/rke2-metrics-server.yaml
bootstrap: false
- version: v4.0.2-build2024020802
Expand Down
3 changes: 2 additions & 1 deletion scripts/build-images
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ xargs -n1 -t docker image pull --quiet << EOF >> build/images-core.txt
${REGISTRY}/rancher/hardened-cluster-autoscaler:v1.8.10-build20240124
${REGISTRY}/rancher/hardened-dns-node-cache:1.22.28-build20240125
${REGISTRY}/rancher/hardened-etcd:${ETCD_VERSION}-build20230802
${REGISTRY}/rancher/hardened-k8s-metrics-server:v0.6.3-build20231009
${REGISTRY}/rancher/hardened-k8s-metrics-server:v0.7.1-build20240401
${REGISTRY}/rancher/hardened-addon-resizer:1.8.20-build20240410
${REGISTRY}/rancher/klipper-helm:v0.8.3-build20240228
${REGISTRY}/rancher/klipper-lb:v0.4.7
${REGISTRY}/rancher/mirrored-pause:${PAUSE_VERSION}
Expand Down
6 changes: 5 additions & 1 deletion scripts/test-run-basics
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,20 @@ export -f start-test
# -- this currently only checks imags for the default CNI and charts
verify-airgap-images() {
local expected="$TEST_DIR/logs/images-expected.txt"
local expected_noresizer="$TEST_DIR/logs/images-expected-noresizer.txt"
local actual="$TEST_DIR/logs/images-actual.txt"

docker exec $(cat $TEST_DIR/servers/1/metadata/name) cat /images.txt | sort -u >$expected

# Addon-resizer is an optional feature of metrics-server, not enabled by default
cat $expected | grep -v "hardened-addon-resizer" > $expected_noresizer

for name in $@; do
docker exec $name crictl images -o json \
| jq -r '.images[].repoTags[0] | select(. != null)'
done | sort -u >$actual

if ! diff $expected $actual; then
if ! diff $expected_noresizer $actual; then
echo '[ERROR] Failed airgap image check'
return 1
fi
Expand Down

0 comments on commit 0d53b95

Please sign in to comment.