Files
substrate/hack
Adrien Delorme 22600fee00 fix(hack): only pass --context to kubectl-delegating ko subcommands (#93)
## Symptom

With `KUBECTL_CONTEXT` set in `.ate-dev-env.sh`, `./hack/install-ate.sh
--deploy-ate-system` aborts mid-deploy at the first `ko resolve`:

    Error: unknown command "--context=..." for "ko resolve"

CRDs, the ate-system namespace, and podcertificate-controller have
already been applied by then, leaving the cluster half-installed.

## Cause

`run_ko` unconditionally appends `-- --context=$KUBECTL_CONTEXT` to
every ko invocation. Only `ko apply`, `ko create`, `ko delete`, `ko run`
have a kubectl phase that consumes args after `--`. Other subcommands
(`resolve`, `build`, `deps`, `login`, ...) parse it as a flag and reject
it.

## Fix

Only forward `--context` for the ko subcommands that actually delegate
to kubectl. `run_kubectl` already passes the context to direct kubectl
invocations, so the chained `ko resolve | run_kubectl apply -f -` flow
still targets the right cluster.
2026-05-27 13:17:13 -07:00
..
2026-05-23 16:19:09 -07:00
2026-05-19 16:57:14 -07:00
2026-05-26 18:09:33 -07:00
2026-05-19 16:57:14 -07:00