-
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
🌱 Add a check to the Cluster webhook to ensure ClusterClass exists #5585
🌱 Add a check to the Cluster webhook to ensure ClusterClass exists #5585
Conversation
6b6a1b6
to
8f35a42
Compare
This is now rebased on top of #5596 and shouldn't be merged before that PR. The most recent commit adds the clusterClassExists checks inline with the other validation checks. |
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.
I'll re-review once the other PR is merged
8f35a42
to
e3e343d
Compare
e3e343d
to
9c2b283
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.
last round of nits from my side
9c2b283
to
1e0d06a
Compare
Signed-off-by: killianmuldoon <[email protected]>
1e0d06a
to
ac8bed0
Compare
/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]
This change adds an additional check to the Cluster Webhook to ensure that a ClusterClass referenced by a cluster exists. If the ClusterClass does not exist the Cluster creation or update is rejected.
This check introduces an expected ordering in the creation and update of the ClusterClass and Cluster objects, and it adds a client to the webhook that is used to fetch the referenced ClusterClass from the API server on Cluster creation and update.
Related to #5537