crossplane v2 breaks on upgrades from Sylva 1.4
I have seen the following jobs failing on the same crossplane upgrade error:
- https://gitlab.com/sylva-projects/sylva-core/-/jobs/10981520775
- https://gitlab.com/sylva-projects/sylva-core/-/jobs/10982068843
- https://gitlab.com/sylva-projects/sylva-core/-/jobs/10979998552
- some nightly runs as well
The error in https://gitlab.com/sylva-projects/sylva-core/-/jobs/10979998552 and https://gitlab.com/sylva-projects/sylva-core/-/jobs/10981520775 is the crossplane Pod init container failing with:
crossplane: error: cannot initialize core:
cannot apply crd:
cannot patch object:
CustomResourceDefinition.apiextensions.k8s.io "environmentconfigs.apiextensions.crossplane.io" is invalid:
status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
What triggers this issue is !5030 (merged).
Before working on solving the root cause (most probably an apiVersion upgrade thing) we should revert that MR.