Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

HNC: Restore the workaround for "envtest failure with unserved versions" bug  #1148

@yiqigao217

Description

@yiqigao217

See controller-runtime bug kubernetes-sigs/controller-runtime#1154

Currently we work around this bug by

  1. Having a script (hack/crd_patches/ensure-all-served-for-envtest.sh) to generate a separate copy of the CRDs with all versions set to served in manifests/envtest directory;
  2. Updating the CRDDirectoryPaths in internal/reconcilers/suite_test.go to manifests/envtest.

After the bug is fixed in controller-runtime, we should remove the script and set CRDDirectoryPaths back to config/crd/bases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions