Skip to content

translate machine-pool-ci-version KubeadmConfig merge patch to JSON patch #5225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented Oct 31, 2024

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

This PR moves the changes to the preKubeadmCommands and files arrays in the KubeadmConfig used for MachinePool ci-version tests out of a strategic merge patch and into a JSON merge patch. Using a JSON merge patch allows us to express "add this element to this array" vs. a strategic merge patch that can only express "replace the entire array with these elements listed here." This should help us integrate the ILB changes from #5209 with the ci-version templates which both require changes to these arrays. The rendered templates remain exactly the same with these changes.

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 #

Special notes for your reviewer:

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 31, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Oct 31, 2024

/assign @nawazkh

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 31, 2024
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.79%. Comparing base (fd746e8) to head (04bc24a).
Report is 20 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5225   +/-   ##
=======================================
  Coverage   52.78%   52.79%           
=======================================
  Files         270      270           
  Lines       29043    29043           
=======================================
+ Hits        15330    15332    +2     
+ Misses      12922    12920    -2     
  Partials      791      791           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nojnhuh nojnhuh force-pushed the prow-mp-ci-version-patch branch from 385abd5 to 04bc24a Compare October 31, 2024 20:09
@jackfrancis
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 31, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 6c95e9d0aafbe1459534d03dd292ce25dfc388cf

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Oct 31, 2024

/retest

1 similar comment
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Oct 31, 2024

/retest

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@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 1, 2024
@nawazkh
Copy link
Member

nawazkh commented Nov 1, 2024

/lgtm

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Nov 1, 2024

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mboersma, nojnhuh

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

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Nov 1, 2024

/retest

@k8s-ci-robot k8s-ci-robot merged commit f3917ea into kubernetes-sigs:main Nov 1, 2024
29 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Nov 1, 2024
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants