Skip to content

Commit fe081e7

Browse files
author
sivakami
committed
Set kubeconfig.
1 parent 21834c7 commit fe081e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.pipelines/swiftv2-long-running/template/long-running-pipeline-template.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,20 @@ stages:
172172
173173
echo "==> Adding Go bin to PATH"
174174
export PATH=$PATH:$(go env GOPATH)/bin
175+
176+
echo "==> Downloading Go dependencies"
177+
go mod download
178+
179+
echo "==> Setting up kubeconfig for cluster aks-2"
180+
az aks get-credentials \
181+
--resource-group ${{ parameters.resourceGroupName }} \
182+
--name aks-2 \
183+
--file /tmp/aks-2.kubeconfig \
184+
--overwrite-existing \
185+
--admin
186+
187+
echo "==> Verifying cluster connectivity"
188+
kubectl --kubeconfig /tmp/aks-2.kubeconfig get nodes
175189
176190
echo "==> Running datapath tests"
177191
export RG=${{ parameters.resourceGroupName }}

0 commit comments

Comments
 (0)