-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
Description
There is some cases in which we mark some fields as required, but they are not. We should somehow figure out if they are actually required only in some situations, and generate the files accordingly.
Some examples:
- in
io.k8s.api.apps.v1.DeploymentSpec,selectoris marked as required, but Kubernetes is perfectly happy in accepting a Deployment without it (it will populate it based onspec.template.metadata.labels. - in
io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta, we manually marknameas a required field (I think it's required if it's a top-level object), but Kubernetes is perfectly happy in accepting a Deployment whosespec.template.metadatahas noname.
Any ideas?