Skip to content

Commit 0ec6a9c

Browse files
authored
Merge pull request #2405 from ElijahQuinones/fixCI
Add Shebang and use docker manifest instead of crane
2 parents 86b982d + 538d20e commit 0ec6a9c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hack/e2e/test-images.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# Copyright 2025 The Kubernetes Authors.
24
#
35
# Licensed under the Apache License, Version 2.0 (the 'License');
@@ -68,18 +70,18 @@ imageSuffixes=("a1compat fips-windows-amd64-ltsc2022 fips-windows-amd64-ltsc2019
6870
loudecho "Ensuring all images are present"
6971

7072
for suffix in ${imageSuffixes[@]}; do
71-
if [ ! "$(crane digest "${IMAGE}":"${TAG}"-"${suffix}")" ]; then
73+
if [ ! "$(docker manifest inspect "${IMAGE}":"${TAG}"-"${suffix}")" ]; then
7274
loudecho "$suffix image not found"
7375
exit 1
7476
fi
7577
done
7678

7779
loudecho "Ensuring image indexes have all images"
78-
if [ ! "$(crane manifest ${IMAGE}:${TAG} | jq ".manifests.[3].platform")" ]; then
80+
if [ ! "$(docker manifest inspect ${IMAGE}:${TAG} | jq ".manifests[3].platform")" ]; then
7981
loudecho "Error index image is missing images"
8082
exit 1
8183
fi
82-
if [ ! "$(crane manifest ${IMAGE}:${TAG}-fips | jq ".manifests.[3].platform")" ]; then
84+
if [ ! "$(docker manifest inspect ${IMAGE}:${TAG}-fips | jq ".manifests[3].platform")" ]; then
8385
loudecho "Error fips index image is missing images"
8486
exit 1
8587
fi

0 commit comments

Comments
 (0)