Skip to content

Refine runtime detection logic#405

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
stmcginnis:runtime
May 18, 2026
Merged

Refine runtime detection logic#405
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
stmcginnis:runtime

Conversation

@stmcginnis
Copy link
Copy Markdown
Contributor

We would have occasional issues trying to do things like use docker on a podman system. We have the KIND_EXPERIMENTAL_PROVIDER override, but that's not always obvious to users. It's also common that users have the docker CLI installed, but either as an alias for podman, or for other uses.

Our existing logic was to run the "version" command for each runtime client. If the command worked (i.e. the binary was present) then we would assume that was an available runtime.

This updates that logic to actually run a command that would require that runtime to be running - docker info, etc. If the binary is present but that given runtime is non-functional then we will not incorrectly assume it can be used for our purposes.

Related to: #404

We would have occasional issues trying to do things like use `docker`
on a `podman` system. We have the `KIND_EXPERIMENTAL_PROVIDER` override,
but that's not always obvious to users. It's also common that users have
the `docker` CLI installed, but either as an alias for podman, or for
other uses.

Our existing logic was to run the "version" command for each runtime
client. If the command worked (i.e. the binary was present) then we
would assume that was an available runtime.

This updates that logic to actually run a command that would require
that runtime to be running - `docker info`, etc. If the binary is
present but that given runtime is non-functional then we will not
incorrectly assume it can be used for our purposes.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 4, 2026
@k8s-ci-robot k8s-ci-robot requested a review from aojea May 4, 2026 17:27
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 4, 2026
@aojea
Copy link
Copy Markdown
Contributor

aojea commented May 18, 2026

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 18, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, stmcginnis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 7b184ec into kubernetes-sigs:main May 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants