fix(ci): use namespace-scoped kubeconfig check, guard empty pod name #38

Merged
rock merged 1 commits from fix/ci-kubeconfig-rbac into main 2026-09-26 11:05:18 +00:00
Owner

Fixes CI run #1023 (job 1350).

Root cause: kubectl get nodes requires cluster-scope RBAC that ci-tekton-trigger SA lacks.

Fixes:

  1. Replace kubectl get nodes with kubectl get namespaces (namespace-scoped, allowed)
  2. Guard canary cleanup: skip kubectl delete when POD_NAME is empty (prevents resource name may not be empty)
Fixes CI run #1023 (job 1350). **Root cause:** `kubectl get nodes` requires cluster-scope RBAC that `ci-tekton-trigger` SA lacks. **Fixes:** 1. Replace `kubectl get nodes` with `kubectl get namespaces` (namespace-scoped, allowed) 2. Guard canary cleanup: skip `kubectl delete` when `POD_NAME` is empty (prevents `resource name may not be empty`)
rock added 1 commit 2026-09-26 11:05:08 +00:00
- Replace 'kubectl get nodes' (cluster-scope, forbidden for ci-tekton-trigger SA)
  with 'kubectl get namespaces' (namespace-scoped, allowed)
- Guard canary cleanup against empty POD_NAME to prevent 'resource name may not be empty'

Fixes CI run #1023
rock merged commit 63ec2ddf68 into main 2026-09-26 11:05:18 +00:00
Sign in to join this conversation.