Set KUBECONFIG for LBC's ginkgo tests

This commit is contained in:
Peter Rifel 2024-02-09 22:18:11 -06:00
parent 446f3acaf1
commit b73a2dd7aa
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -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]')