Skip to content

Commit 69c05e4

Browse files
committed
Allow passing kind cluster name
1 parent 091076e commit 69c05e4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# we need to pull these published images and load them into the kind cluster
6363
# with the tag correct tag.
6464
- name: Load tagged container images into kind cluster
65-
run: ./kind-images.sh ${{ github.event.pull_request.head.sha }}
65+
run: ./kind-images.sh ${{ github.event.pull_request.head.sha }} ${{ env.CLUSTER_NAME }}
6666
working-directory: web-apps
6767

6868
- name: Add Helm repos for dependencies

web-apps/kind-images.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# set -ex
1+
set -e
22

33
source functions.sh
44

@@ -8,11 +8,13 @@ if [[ -z $1 ]]; then
88
fi
99

1010
REMOTE_TAG=$1
11+
CLUSTER_NAME=${2:-kind}
12+
echo Kind cluster name: $CLUSTER_NAME
1113
KIND_TAG=local
1214
for image in $(find_images .); do
1315
full_name=ghcr.io/stackhpc/azimuth-llm-$image-ui
1416
echo $full_name
1517
docker pull $full_name:$REMOTE_TAG
1618
docker image tag $full_name:$REMOTE_TAG $full_name:$KIND_TAG
17-
kind load docker-image $full_name:$KIND_TAG
19+
kind load docker-image -n $CLUSTER_NAME $full_name:$KIND_TAG
1820
done

0 commit comments

Comments
 (0)