Skip to content

Published CRD openapi schema takes ~60 seconds to appear, increased test time significantly #71143

@liggitt

Description

@liggitt

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):

  1. create a CRD with a schema: kubectl create -f staging/src/k8s.io/csi-api/pkg/crd/manifests/csinodeinfo.yaml
  2. 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

Metadata

Metadata

Assignees

Labels

area/custom-resourceskind/bugCategorizes issue or PR as related to a bug.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions