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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Make Cluster webhook less strict for out of date ClusterClasses #8136

Conversation

killianmuldoon
Copy link
Contributor

This PR makes the Cluster webhook less strict when dealing with a ClusterClass that has not been successfully reconciled. For defaulting and validation scenarios, a ClusterClass that has not been successfully reconciled is treated in the same way as a ClusterClass which does not exist.

Related to #7985

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 20, 2023
@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from 4536ff6 to 48b899f Compare February 20, 2023 13:39
internal/webhooks/cluster.go Show resolved Hide resolved
internal/webhooks/cluster.go Show resolved Hide resolved
internal/webhooks/cluster.go Outdated Show resolved Hide resolved
@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from 48b899f to 03f3d7c Compare February 20, 2023 15:20
@killianmuldoon
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from 03f3d7c to 0cd877b Compare February 20, 2023 16:34
@killianmuldoon killianmuldoon changed the title [WIP] 🌱 Make Cluster webhook less strict for out of date ClusterClasses 🌱 Make Cluster webhook less strict for out of date ClusterClasses Feb 20, 2023
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 20, 2023
Copy link
Contributor Author

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

@sbueringer should be ready for review now

@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from 0cd877b to a6422b5 Compare February 20, 2023 16:35
@killianmuldoon
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

/retest

cmd/clusterctl/client/cluster/mover.go Outdated Show resolved Hide resolved
internal/webhooks/cluster.go Show resolved Hide resolved
@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from a6422b5 to db2d192 Compare February 20, 2023 18:00
@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from db2d192 to 049b8fe Compare February 20, 2023 18:05
@sbueringer
Copy link
Member

/lgtm

/assign @fabriziopandini

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

LGTM label has been added.

Git tree hash: f1a76b8524cc682061aabcf42f4afdcd61b0729f

@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-full-main

@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from 049b8fe to ee4948e Compare February 21, 2023 10:48
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 21, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 21, 2023
@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from ee4948e to 8643d89 Compare February 21, 2023 11:02
internal/webhooks/cluster.go Outdated Show resolved Hide resolved
internal/webhooks/cluster_test.go Outdated Show resolved Hide resolved
internal/webhooks/cluster_test.go Outdated Show resolved Hide resolved
internal/webhooks/cluster_test.go Outdated Show resolved Hide resolved
internal/webhooks/cluster_test.go Outdated Show resolved Hide resolved
@killianmuldoon killianmuldoon force-pushed the pr-exvars-lenient-cluster-webhook branch from 8643d89 to d9226f2 Compare February 21, 2023 12:50
@sbueringer
Copy link
Member

/lgtm

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

LGTM label has been added.

Git tree hash: 69fb14e7b039d47b515e12882464e4106345d6df

@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-full-main

/hold
for test results

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 21, 2023
Copy link
Member

@fabriziopandini fabriziopandini 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
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 Feb 21, 2023
@sbueringer
Copy link
Member

CI green

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 21, 2023
@k8s-ci-robot k8s-ci-robot merged commit 193f13a into kubernetes-sigs:main Feb 21, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.4 milestone Feb 21, 2023
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/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.

4 participants