-
Notifications
You must be signed in to change notification settings - Fork 228
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
ConfigAPI: Implement the MultiKueue validations #2129
ConfigAPI: Implement the MultiKueue validations #2129
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y 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 |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/remove-kind bug |
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, would be nice to add validation for the origin
label for completeness.
return allErrs | ||
} | ||
|
||
func validateMultiKueue(c *configapi.Configuration) field.ErrorList { |
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 think we should also add validation for the origin
label, using IsValidLabelValue
.
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.
Great catch! Thanks!
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.
Done.
ab93755
to
d3ef458
Compare
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
d3ef458
to
668f440
Compare
/lgtm |
LGTM label has been added. Git tree hash: c98deedb200371ac7b11ab7ac07fdb520e0650b7
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
We could not generate CRD validations in the ConfigAPI since the ConfigAPI is not CRD.
So, we need to validate the Configurations when the manager boosts up.
Which issue(s) this PR fixes:
Part-of #2084
Special notes for your reviewer:
Does this PR introduce a user-facing change?