Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HUB and TAG variables ignored/not passed through to istioctl when running the tests #15214

Open
peterj opened this issue May 31, 2024 · 0 comments

Comments

@peterj
Copy link
Member

peterj commented May 31, 2024

Prerequisites:

  1. Run the prow/integ-suite-kind.sh --skip-build --skip-cleanup from the istio repo to set up the kind cluster
  2. Set the following environment variables:
export DOCKER_HOST=unix:///var/run/docker.sock
export DOCKER_SOCKET_MOUNT="-v /var/run/docker.sock.raw:/var/run/docker.sock"
export TAG=latest
export HUB=gcr.io/istio-testing
  1. Run the tests from the istio.io repo:
HUB=gcr.io/istio-testing TAG=latest TEST_ENV=kind ADDITIONAL_CONDITIONAL_HOST_MOUNTS="--mount type=bind,source=${HOME}/.ssh,destination=/home/user/.ssh,readonly " ADDITIONAL_CONTAINER_OPTIONS="--network host" make doc.test.profile-none TEST=ambient/getting-started/test.sh

The test hangs on the first step (installing ambient) because it fails to pull the istiod pilot image.

 k get deploy istiod -n istio-system -o yaml | grep image
        image: istio/pilot:1.23-alpha.6a089c8e9eaff7aa7e5bf8e1090a78fded2f7907-distroless
        imagePullPolicy: IfNotPresent

Even though we explicitly set the HUB and TAG variables, those are not being respected.

If I modify the snips.sh file and pass the --set tag=$TAG --set HUB=$HUB to the istioctl command, the test passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant