Add +k8s:maxBytes and +k8s:minBytes OpenAPI representation#578
Add +k8s:maxBytes and +k8s:minBytes OpenAPI representation#578BasavarajBankolli wants to merge 1 commit intokubernetes:masterfrom
Conversation
Signed-off-by: Basavaraj PB <basavarajbankolli76@gmail.com>
|
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BasavarajBankolli The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @BasavarajBankolli! |
|
/assign @aaron-prindle Will pass this onto the declarative validation folks. |
|
Thanks! Appreciate you routing this to the declarative validation folks. |
What this PR does
Adds support for the
+k8s:maxBytesand+k8s:minBytesvalidation markers in kube-openapi.These markers are mapped to OpenAPI
maxLengthandminLengthrespectively, allowing byte-based validation constraints to be expressed in API definitions.Implementation
MaxBytesandMinBytesfields tocommentTagsmaxLengthwithmaxBytesandminLengthwithminBytesFixes: kubernetes/kubernetes#137613