kubeplus
kubeplus copied to clipboard
Recreating ResourceComposition instance
We have observed that the following sequence of events is possible:
- Create ResourceComposition instance -> This leads to the creation of the application CRD
- KubePlus Pod gets deleted from the cluster
- ResourceComposition instance gets deleted -> This leaves behind the application CRD and its instances (since KubePlus is not around, deletion of ResourceComposition instance does not lead to delete of application CRDs and their instances)
- KubePlus is installed
- Trying to create a ResourceComposition instance to "acquire/subsume" the existing application CRD and its instances fails with the following type of error:
Error from server: error when creating "Jenkins.yaml": admission webhook "platform-as-code.crd-binding.v1" denied the request: Resource with Kind Name Jenkins exists in the cluster.