Versioning CRD yaml to simplify only installing v1alpha2 #789
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This moves CRD yaml to version specific directories that will simplify installing only v1alpha2 CRDs. This also adds the ReferencePolicy CRD to kustomize config. Although I'd initially tried to remove the v1alpha1 CRDs entirely, we rely on them to verify our v1alpha1 examples. Until we release v1alpha2, I think we need to leave that verification, and therefore the v1alpha1 CRDs in place, even though we should be encouraging only installing v1alpha2 CRDs post-release.
Some reasons for this:
Of course we could take this a step further and remove the entirety of the v1alpha1 APIs and related codegen, but I think it's helpful to leave both in place if any implementations do want to concurrently support both versions.
Note: This also removes
hack/verify-crds.sh
. I spent some time trying to make it work with this new structure before I realizedhack/verify-codegen.sh
already completely covers this in a simpler way.Does this PR introduce a user-facing change?: