Skip to content

Commit b73a2dd

Browse files
committedFeb 10, 2024
Set KUBECONFIG for LBC's ginkgo tests
1 parent 446f3ac commit b73a2dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎tests/e2e/scenarios/aws-lb-controller/run-test.sh

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ ZONES="eu-west-1a,eu-west-1b,eu-west-1c"
3333

3434
kops-up
3535

36+
KUBECONFIG=$(mktemp -t kops.XXXXXXXXX)
37+
export KUBECONFIG
38+
"${KOPS}" export kubecfg --name "${CLUSTER_NAME}" --admin --kubeconfig "${KUBECONFIG}"
39+
3640
VPC=$(${KOPS} toolbox dump -o json | jq -r .vpc.id)
3741

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

0 commit comments

Comments
 (0)
Please sign in to comment.