jenkins-x-plugins / jenkins-x-plugins/jx-gitops
move command incorrectly relocates resources when a 'cluster' scope CRD is added.
- Dominant language
- Go
- Stars
- 35
- Forks
- 53
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
We deployed crossplane with aws provisioner to our jenkins X cluster. This added some custom resource definitions including:
- **deployments**.apigatewayv2.aws.crossplane.io
- **secrets**.secretsmanager.aws.crossplane.io
The scope of these CRDs is 'Cluster'
During the next bootjob, the 'move' command relocated **all** deployments and secrets from config-root/namespaces to config-root/cluster then started pruning deployments including ingress-nginx, chartmuseum, etc.
Manually deleting the CRDs and rerunning the bootjobs restored the deployments.
Expected behaviour:
The move command should not be confused by the unrelated CRD and relocate resources.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.