What happened:
#67205 started publishing crd openapi schemas.
What you expected to happen:
kubectl explain and kubectl create would make use of the schema information
How to reproduce it (as minimally and precisely as possible):
- create a CRD with a schema:
kubectl create -f staging/src/k8s.io/csi-api/pkg/crd/manifests/csinodeinfo.yaml
- try to explain the resource:
kubectl explain csinodeinfo
- try to create the resource with invalid fields:
echo '{"kind":"CSINodeInfo","apiVersion":"csi.storage.k8s.io/v1alpha1","metadata":{"name":"foo"},"spec":{"foo":true}}' | kubectl create -f -
Kubectl does not successfully discover the schema info
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version):
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a):
- Install tools:
- Others:
/assign sttts roycaihw
/kind bug
What happened:
#67205 started publishing crd openapi schemas.
What you expected to happen:
kubectl explainandkubectl createwould make use of the schema informationHow to reproduce it (as minimally and precisely as possible):
kubectl create -f staging/src/k8s.io/csi-api/pkg/crd/manifests/csinodeinfo.yamlkubectl explain csinodeinfoecho '{"kind":"CSINodeInfo","apiVersion":"csi.storage.k8s.io/v1alpha1","metadata":{"name":"foo"},"spec":{"foo":true}}' | kubectl create -f -Kubectl does not successfully discover the schema info
Anything else we need to know?:
Environment:
kubectl version):uname -a):/assign sttts roycaihw
/kind bug