Merge pull request #16334 from rifelpet/lbc-kubecfg

Set KUBECONFIG for LBC's ginkgo tests
This commit is contained in:
Kubernetes Prow Robot 2024-02-09 22:50:29 -08:00 committed by GitHub
commit 99db2089a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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]')