What happened:
#67205 started publishing crd openapi schemas.
What you expected to happen:
Schema information to appear quickly when a new CRD is created, and for the integration test added that tests this to complete quickly.
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
- wait for the schema to appear:
kubectl get --raw /openapi/v2 | grep '"csi.storage.k8s.io.v1alpha1.CSINodeInfo":'
It takes ~60 seconds for the schema to appear.
The TestCRDOpenAPI() integration test added that does this increased the runtime of the test/integration/master package from 333s (average of five runs on master prior to merge) to 460s (average of five runs against the PR). The other ~25 tests in that package take a total of ~5.5 minutes, and this one test added an additional 2 minutes.
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:
Schema information to appear quickly when a new CRD is created, and for the integration test added that tests this to complete quickly.
How to reproduce it (as minimally and precisely as possible):
kubectl create -f staging/src/k8s.io/csi-api/pkg/crd/manifests/csinodeinfo.yamlkubectl get --raw /openapi/v2 | grep '"csi.storage.k8s.io.v1alpha1.CSINodeInfo":'It takes ~60 seconds for the schema to appear.
The
TestCRDOpenAPI()integration test added that does this increased the runtime of the test/integration/master package from 333s (average of five runs on master prior to merge) to 460s (average of five runs against the PR). The other ~25 tests in that package take a total of ~5.5 minutes, and this one test added an additional 2 minutes.Anything else we need to know?:
Environment:
kubectl version):uname -a):/assign sttts roycaihw
/kind bug