Skip to content

Commit

Permalink
Set KUBECONFIG for LBC's ginkgo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Feb 10, 2024
1 parent 446f3ac commit b73a2dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/scenarios/aws-lb-controller/run-test.sh
Expand Up @@ -33,6 +33,10 @@ ZONES="eu-west-1a,eu-west-1b,eu-west-1c"

kops-up

KUBECONFIG=$(mktemp -t kops.XXXXXXXXX)
export KUBECONFIG
"${KOPS}" export kubecfg --name "${CLUSTER_NAME}" --admin --kubeconfig "${KUBECONFIG}"

VPC=$(${KOPS} toolbox dump -o json | jq -r .vpc.id)

ZONE=$(${KOPS} get ig -o json | jq -r '[.[] | select(.spec.role=="Node") | .spec.subnets[0]][0]')
Expand Down

0 comments on commit b73a2dd

Please sign in to comment.