-
Notifications
You must be signed in to change notification settings - Fork 80
(feat): Cattle Cluster Agent PDB and PC Validation #702
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
Conversation
eb001d1 to
c13c570
Compare
jiaqiluo
left a comment
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.
left a few comments, but overall good
pkg/resources/management.cattle.io/v3/cluster/validator_test.go
Outdated
Show resolved
Hide resolved
pkg/resources/provisioning.cattle.io/v1/cluster/validator_test.go
Outdated
Show resolved
Hide resolved
c13c570 to
9e59c51
Compare
jiaqiluo
left a comment
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
crobby
left a comment
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.
Code and tests look nice. I just had some nits on stray apostrphes.
9e59c51 to
7b73c07
Compare
7b73c07 to
6502f96
Compare
Issue: rancher/rancher#48995
depends on rancher/rancher#49107
Problem
A new feature is being introduced to Rancher which allows users to define a Pod Disruption Budget and Priority Class on the v1.Cluster and v3.Cluster objects to better ensure HA of the cattle cluster agent. By default this feature will be disabled in v2.11. In order to prevent use of the new fields added to the cluster objects when the feature is disabled, as well as to prevent incorrect configuration of the PC and PDB, additional validation needs to be added to the webhook.
Solution
Add additional logic to the validators for the v1.Cluster, v3.Cluster, and settings resources.
CheckList