fix(kubectl): download kubectl for the runner's arch; wait for rollouts
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-amd64) (push) Successful in 17s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-slim-amd64) (push) Successful in 21s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-amd64) (push) Successful in 25s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-full-amd64) (push) Successful in 26s
Test Actions (self-test) / Test SSH deploy action (runner-slim-amd64) (push) Failing after 4s
Test Actions (self-test) / Test SSH deploy action (runner-full-arm64) (push) Canceled after 0s
Test Actions (self-test) / Test SSH deploy action (runner-slim-arm64) (push) Canceled after 0s
Test Actions (self-test) / Test SSH deploy action (runner-full-amd64) (push) Canceled after 5s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-amd64) (push) Successful in 1m6s
Test Actions (self-test) / Test Kubernetes actions (runner-full-amd64) (push) Successful in 1m10s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-arm64) (push) Successful in 5m36s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-full-arm64) (push) Successful in 5m39s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-arm64) (push) Successful in 6m13s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-slim-arm64) (push) Successful in 6m16s
Test Actions (self-test) / Test Kubernetes actions (runner-full-arm64) (push) Successful in 2m26s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-arm64) (push) Successful in 2m34s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-amd64) (push) Successful in 17s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-slim-amd64) (push) Successful in 21s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-amd64) (push) Successful in 25s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-full-amd64) (push) Successful in 26s
Test Actions (self-test) / Test SSH deploy action (runner-slim-amd64) (push) Failing after 4s
Test Actions (self-test) / Test SSH deploy action (runner-full-arm64) (push) Canceled after 0s
Test Actions (self-test) / Test SSH deploy action (runner-slim-arm64) (push) Canceled after 0s
Test Actions (self-test) / Test SSH deploy action (runner-full-amd64) (push) Canceled after 5s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-amd64) (push) Successful in 1m6s
Test Actions (self-test) / Test Kubernetes actions (runner-full-amd64) (push) Successful in 1m10s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-arm64) (push) Successful in 5m36s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-full-arm64) (push) Successful in 5m39s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-arm64) (push) Successful in 6m13s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-slim-arm64) (push) Successful in 6m16s
Test Actions (self-test) / Test Kubernetes actions (runner-full-arm64) (push) Successful in 2m26s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-arm64) (push) Successful in 2m34s
kubectl-apply and deploy-restart always downloaded the linux/amd64 kubectl binary, which only worked on arm64 runners because the runner images ship kubectl preinstalled. Detect the arch via uname -m, and use curl -f so a bad version fails instead of saving an error page. deploy-restart now waits for `kubectl rollout status` by default (new `wait` / `timeout` inputs, default true / 300s) and prints deployment, pod and event diagnostics when the rollout does not complete. The self-test pins kube_version to force the download path and sets a rollout timeout. README and AGENTS.md document the new inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d023002a62
commit
0e97990615
5 files changed
+78
-8
No files matched your search
@@ -164,6 +164,9 @@ jobs:
|
||||
kube_config: ${{ secrets.KUBE_CONFIG }}
|
||||
manifest: tests/manifests/test-deployment.yaml
|
||||
namespace: ${{ env.TEST_NAMESPACE }}
|
||||
# Pin a version different from the runner image's preinstalled
|
||||
# kubectl so the download path (arch detection) is exercised.
|
||||
kube_version: v1.31.0
|
||||
|
||||
- name: Restart test deployment
|
||||
uses: https://git.ivanch.me/ivanch/pipeline-actions/deploy-restart@main
|
||||
@@ -171,6 +174,7 @@ jobs:
|
||||
kube_config: ${{ secrets.KUBE_CONFIG }}
|
||||
deployment_name: pipeline-actions-test
|
||||
namespace: ${{ env.TEST_NAMESPACE }}
|
||||
timeout: 120s
|
||||
|
||||
- name: Verify deployment rollout status
|
||||
shell: bash
|
||||
|
||||
Reference in new issue
Block a user