Nesting resource.Quantity
inside one of the go struct adds anyOf
validation in generated CRD
#4287
Unanswered
abhijeet2096-confluent
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I am trying to following, and I am not sure if this is a default behaviour, or if we can explicitly change via some kubebuilder markers. I am using following versions
I am trying to nest resource.Quantity as follows:
But when I am generating CRD, this field generates
The problem I am facing is because of above
anyOf
validation, I am getting following error when I try to set cpu resource to 0.1I get following error
but following works as expected
I tried the same with a generic
Pod
yaml, and it allows me to set field to 0.1I am looking for guidance, on How can I instruct it to allow setting 0.1 as a valid value? I checked out kubebuilder documentation but wasn't able to find out relevant marker.
Many Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions