Skip to content

Commit

Permalink
Merge pull request #51 from rancher/gha-portpr-13395106613-1
Browse files Browse the repository at this point in the history
[backport release/v2.x] Fix check images bug
  • Loading branch information
mallardduck authored Feb 18, 2025
2 parents 9089bcd + f296334 commit a5f99bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
.idea
versions.txt
new-versions.txt
/image_arch_test
5 changes: 3 additions & 2 deletions scripts/check-image-binaries
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ verifyKuberlrKubectl() {
# Pull and extract files
CONTAINER_ID=$(docker create --platform linux/$ARCH "$IMAGE")
docker cp "$CONTAINER_ID:/bin/kuberlr" "$ARCH_DIR/kuberlr" 2>&1 > /dev/null || echo "kuberlr not found in $IMAGE for $ARCH"
KUBECTL_LIST=$(docker run --rm --entrypoint sh rancher/kuberlr-kubectl:v4.0.1 -c "ls /usr/bin | grep kube")
KUBECTL_LIST=$(docker run --rm --entrypoint sh "$IMAGE" -c "ls /usr/bin | grep kube")
for KUBECTL_VER in $KUBECTL_LIST; do
docker cp "$CONTAINER_ID:/usr/bin/$KUBECTL_VER" "$ARCH_DIR/$KUBECTL_VER" 2>&1 > /dev/null || echo "kubectl ($KUBECTL_VER) not found in $IMAGE for $ARCH"
done
Expand Down Expand Up @@ -100,5 +100,6 @@ else
verifyKuberlrKubectl;
fi

rm -rf "$WORKDIR"

echo "All architectures processed. Check $WORKDIR for results."
echo "All architectures processed."

0 comments on commit a5f99bb

Please sign in to comment.