Skip to content

Commit bd57a85

Browse files
Yolean k8s-qaclaude
andcommitted
ci(e2e-cluster): export KUBECONFIG before acceptance runs
y-cluster v0.3.3 errors out with "KUBECONFIG env must be set" at provision time -- the binary refuses to default a path so it can never accidentally write to a developer's main kubeconfig. The e2e-cluster job's runner has no KUBECONFIG set by default. Add a pre-step that exports `$HOME/.kube/yolean` via $GITHUB_ENV (matching the ystack convention from the local dev workflow), and mkdir the parent dir. The acceptance script picks it up via the env inherited through the ENV_IS_CLEAN=true trampoline-skip path. Also retire the qemu/kvm pre-flight checks now that the acceptance runs against the docker provider; replace with `df -h` + `docker info` for surfaced disk + docker daemon visibility. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f0b17c3 commit bd57a85

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,21 @@ jobs:
6161
timeout-minutes: 30
6262
steps:
6363
- uses: actions/checkout@v5.0.0
64-
- name: Pre-flight (KVM, disk, qemu)
64+
- name: Pre-flight (disk, docker)
6565
run: |
66-
ls -l /dev/kvm
6766
df -h /
68-
qemu-system-x86_64 --version | head -1
67+
docker info | head -10
68+
- name: Set KUBECONFIG (ystack convention)
69+
run: |
70+
mkdir -p "$HOME/.kube"
71+
echo "KUBECONFIG=$HOME/.kube/yolean" >> "$GITHUB_ENV"
6972
- name: Run cluster acceptance
7073
env:
7174
# The script's first action is `exec env -i ...` which wipes
7275
# the env to "mirror a fresh interactive terminal" on a dev
7376
# laptop. CI's environment is already minimal; setting
74-
# ENV_IS_CLEAN=true skips the trampoline so PATH / YSTACK_HOME
75-
# below take effect.
77+
# ENV_IS_CLEAN=true skips the trampoline so KUBECONFIG /
78+
# PATH / YSTACK_HOME below take effect.
7679
ENV_IS_CLEAN: "true"
7780
YSTACK_HOME: ${{ github.workspace }}
7881
PATH: ${{ github.workspace }}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

0 commit comments

Comments
 (0)