Ability to explicit additionalProperties
on CustomResource
generated schemas
#1360
Unanswered
jeremylvln
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Great question. I would like to know a good answer to this myself. It is possible that this could be circumvented in another way with field pruning (setting this bool), but i'm not sure it works the correct way. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems that when generating the CRD YAML with
kube-derive
, all structs do not have aadditionalProperties
property defined on their schemas. This allows anyone to inject any data (that will not be used, but still accepted by Kubernetes's APIs).Is there any mechanism to define this value ourselves? Should this be the default to not accept any unknown value?
Beta Was this translation helpful? Give feedback.
All reactions