Skip to content

✨ Make packages related to in-place updates public#13507

Open
alexander-demicev wants to merge 1 commit intokubernetes-sigs:mainfrom
alexander-demicev:inplacehelperspublic
Open

✨ Make packages related to in-place updates public#13507
alexander-demicev wants to merge 1 commit intokubernetes-sigs:mainfrom
alexander-demicev:inplacehelperspublic

Conversation

@alexander-demicev
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR make ssome packages related to in-place update implementation public. We would to reuse them in CAPRKE2 to avoid re-implementing our own ones and stay aligned with kubeadm.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 25, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign enxebre for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 25, 2026

// copySpec overwrites patched.destSpecPath with modified.srcSpecPath.
fieldsToPreserve := make([]patchutil.Path, len(patchOptions.preserveFields))
for i, p := range patchOptions.preserveFields {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added this conversion to avoid changes here https://github.com/kubernetes-sigs/cluster-api/blob/main/internal/contract/types.go#L32 but I can have it refactored too if needed in this PR or in a follow-up one.

@alexander-demicev
Copy link
Copy Markdown
Contributor Author

/area util

@k8s-ci-robot k8s-ci-robot added area/util Issues or PRs related to utils and removed do-not-merge/needs-area PR is missing an area label labels Mar 25, 2026
@alexander-demicev alexander-demicev force-pushed the inplacehelperspublic branch 5 times, most recently from 526aafe to 3a4df53 Compare March 26, 2026 09:27
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/util Issues or PRs related to utils cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

2 participants