Skip to content

feat: add validator functions for placement disruption budget to use in webhook#68

Merged
britaniar merged 11 commits intokubefleet-dev:mainfrom
britaniar:crpdbValidation
May 27, 2025
Merged

feat: add validator functions for placement disruption budget to use in webhook#68
britaniar merged 11 commits intokubefleet-dev:mainfrom
britaniar:crpdbValidation

Conversation

@britaniar
Copy link
Member

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@codecov
Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 75.67568% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...rceplacementdisruptionbudget_validating_webhook.go 62.50% 8 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@britaniar britaniar marked this pull request as ready for review May 20, 2025 02:12
@britaniar britaniar requested a review from Arvindthiru May 20, 2025 05:07
britaniar added 9 commits May 23, 2025 11:41
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
Name: "crp-pickn",
},
Spec: placementv1beta1.PlacementDisruptionBudgetSpec{
MaxUnavailable: &intstr.IntOrString{
Copy link
Member

@Arvindthiru Arvindthiru May 27, 2025

Choose a reason for hiding this comment

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

We can't specify both MaxUnavailable and MinAvailable in a valid CRPDB, can be handled in follow up PR

Copy link
Member

@Arvindthiru Arvindthiru left a comment

Choose a reason for hiding this comment

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

LGTM

@britaniar britaniar merged commit 71b967a into kubefleet-dev:main May 27, 2025
20 of 21 checks passed
@britaniar britaniar deleted the crpdbValidation branch May 27, 2025 23:19
audrastump pushed a commit to audrastump/kubefleet that referenced this pull request Aug 20, 2025
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.

2 participants