Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Make MHC ClusterClass authoritative on paths #5949

Merged

Conversation

killianmuldoon
Copy link
Contributor

Signed-off-by: killianmuldoon kmuldoon@vmware.com

Fixes #5948

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 18, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 18, 2022
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 18, 2022
Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
@killianmuldoon
Copy link
Contributor Author

The latest version now calls the defaulting method as a last step in its computation. This means there should never be a field set during defaulting which is unset on a desired MHC. The Cluster Topology controller is still authoritative on the whole "spec" of the object.

@killianmuldoon killianmuldoon force-pushed the fix/mhc-authoritative-paths branch 2 times, most recently from 29a02b8 to 1772af4 Compare January 19, 2022 13:44
@sbueringer
Copy link
Member

sbueringer commented Jan 19, 2022

@killianmuldoon
Overall looks good. But maybe we should inline the mhcBuilder now? It makes it very hard to assess if the tests are correct without inlining.

@killianmuldoon
Copy link
Contributor Author

killianmuldoon commented Jan 19, 2022

I can do it in this PR and if not one pre-release. It's on my list 馃槃 . It'll take a couple of days though I think, given other priorities.

@sbueringer
Copy link
Member

I can do it in this PR and if not one pre-release. It's on my list 馃槃 . It'll take a couple of days though I think, given other priorities.

Okay then let's do that as follow-up

@sbueringer
Copy link
Member

Tested the scenario from the issue and a few more locally with this PR and everything behaves as expected now!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 19, 2022
@fabriziopandini
Copy link
Member

@killianmuldoon thanks for sorting out this detail
It is a small thing but it makes the user experience much more intuitive.
/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

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 Jan 19, 2022
@k8s-ci-robot k8s-ci-robot merged commit cf3852f into kubernetes-sigs:main Jan 19, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.1 milestone Jan 19, 2022
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.

ClusterClass: MHC reconciliation is not authoritative
4 participants