-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Use ClusterClass name index in ClusterClass webhook #5810
🌱 Use ClusterClass name index in ClusterClass webhook #5810
Conversation
e9d2031
to
cdcefbd
Compare
}, | ||
{ | ||
name: "error if many MachineDeploymentClasses, used in multiple Clusters using the modified ClusterClass, are removed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests removed here as they no longer work after the move to using the index. Index requires envtest and these tests rely solely on fakeclient.
d94cd51
to
4066f8a
Compare
@killianmuldoon thx! lgtm pending squash |
Signed-off-by: killianmuldoon <[email protected]>
4066f8a
to
7726885
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[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 |
Signed-off-by: killianmuldoon [email protected]
Add the ClusterClass name index to the client call for getting a ClusterClass in the ClusterClass webhook.
Certain tests are moved to a new subpackage in order to run them with envtest. This is required as the fakeclient doesn't set up the indexes now in use by the ClusterClass webhook.
Note this PR includes duplicate files from #5803 and should not be merged until that PR is completed.
Fixes #5719