Skip to content

Conversation

@k8s-infra-cherrypick-robot

This is an automated cherry-pick of #3372

/assign alvaroaleman

This commit fixes an issue where Environment.Start() would ignore
pre-configured binary paths (APIServer.Path, Etcd.Path, KubectlPath)
set in ControlPlane when DownloadBinaryAssets is false.

Changes:
- Extract path configuration logic into configureBinaryPaths() method
  for better testability and separation of concerns
- Only auto-configure binary paths when they are empty (not pre-set)
- When DownloadBinaryAssets is true, downloaded paths are still used
  (preserving existing behavior)
- Update ControlPlane field documentation to clarify path behavior
- Add tests in envtest_test.go to verify path handling logic
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Nov 2, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c4ff514172fd6412fc063c7ea5959fc2550c25ed

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, k8s-infra-cherrypick-robot

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

The pull request process is described here

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 2, 2025
@k8s-ci-robot k8s-ci-robot merged commit 8be8410 into kubernetes-sigs:release-0.22 Nov 2, 2025
9 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants