Skip to content

Commit 8333aa4

Browse files
authored
Merge pull request #1185 from merico-dev/fix-e2e-kubectl-install
fix: install kubectl for self-hosted runner fix kubectl not found error
2 parents c81ae2a + b4d8659 commit 8333aa4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ jobs:
7171
run: ./dtm apply -f e2e-config.yaml -y
7272
- name: apply twice git-ops
7373
run: ./dtm apply -f e2e-config.yaml -y
74+
- name: install kubectl
75+
run: |
76+
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/linux/amd64/kubectl
77+
chmod +x ./kubectl
78+
sudo mv ./kubectl /usr/local/bin/kubectl
7479
- name: check if pod is ready
7580
run: while [[ $(kubectl get pods -l app=dtm-e2e-go -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
7681
timeout-minutes: 10

0 commit comments

Comments
 (0)