jenkins-x-plugins / jenkins-x-plugins/jx-gitops

move command incorrectly relocates resources when a 'cluster' scope CRD is added.

Open
#877 2 comments 3 reactions 0 assignees View on GitHub
bug
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.