Skip to content

Conversation

@HarrisonWAffel
Copy link
Contributor

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

  • Test
  • Docs

@HarrisonWAffel HarrisonWAffel requested a review from a team February 20, 2025 18:41
@HarrisonWAffel HarrisonWAffel requested a review from a team as a code owner February 20, 2025 18:41
@HarrisonWAffel HarrisonWAffel force-pushed the pc-pdb-validation branch 2 times, most recently from eb001d1 to c13c570 Compare February 20, 2025 19:11
Copy link
Member

@jiaqiluo jiaqiluo left a 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

jiaqiluo
jiaqiluo previously approved these changes Feb 20, 2025
Copy link
Member

@jiaqiluo jiaqiluo left a comment

Choose a reason for hiding this comment

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

lgtm

crobby
crobby previously approved these changes Feb 20, 2025
Copy link
Collaborator

@crobby crobby left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants