Skip to content

Add options to setup-kubernetes#57

Merged
stealthybox merged 2 commits into
mainfrom
kind-config-passthrough
Jun 15, 2026
Merged

Add options to setup-kubernetes#57
stealthybox merged 2 commits into
mainfrom
kind-config-passthrough

Conversation

@stealthybox

Copy link
Copy Markdown
Member

Add four optional, backward-compatible inputs to the setup-kubernetes
composite action:

  • cluster-name — name of the kind cluster (default kind)
  • kind-config — path to a custom kind cluster config
  • skip-checkout — gate the Checkout step when the caller has already
    checked out
  • skip-tools — gate the Kustomize/QEMU/Buildx/Go setup steps and only
    create the kind cluster

These are sensible options to customize kind clusters in CI to match
local make/scripts and to set up custom infra. I intend to use these to
stand up the sigstore stack, which requires configuring the kube
apiserver and containerd.

The alternative is basically copying the pieces of this action
independently, duplicating it into source-controller actions so we can
control the checkout flow and kind config. This seemed like the cleanest
way for us to keep our Dependabot updates in one place.

Plumb two new optional inputs through to helm/kind-action so callers
can set a custom cluster name or pass their own kind config.

Both are backward compatible: callers that omit them get the previous
behavior (cluster_name=kind, default config).

For example, a job that needs a custom kind config (containerd
registry mirrors, kubeadm patches) no longer has to create a default
cluster with this action and then throw it away to make a second one.

Signed-off-by: leigh capili <leigh@null.net>
skip-checkout gates the Checkout step; skip-tools gates the Kustomize,
QEMU, Buildx, and Go setup steps, leaving only the kind cluster
creation.

This lets a job check out once, generate dynamic kind configs, and
call the action repeatedly to spin up multiple clusters without
redoing the toolchain setup each time.

Both default to false, so existing callers are unaffected.

Signed-off-by: leigh capili <leigh@null.net>
@stealthybox stealthybox marked this pull request as ready for review June 15, 2026 05:25

@stefanprodan stefanprodan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @stealthybox 🏅

@stefanprodan stefanprodan added the enhancement New feature or request label Jun 15, 2026
@stealthybox stealthybox merged commit 53908fb into main Jun 15, 2026
4 checks passed
@stealthybox stealthybox deleted the kind-config-passthrough branch June 15, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants