Open
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
,selector
is 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 markname
as 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.metadata
has noname
.
Any ideas?