Skip to content

[BUG]: clusterlink uninstall does not remove user Service CRs createrd per Import operation. #655

@aviweit

Description

@aviweit

Deleting clusterlink with: clusterlink delete peer --name <peer name> does not remove services created per Import operation.

To reproduce:

  1. clone main branch and build local images with make
  2. deploy two kind clusters, load images via kind load docker-image .. and install clusterlink
  3. peer between clusters
  4. on first cluster: create some service (e.g. nginx service) and export it via Export CR in default namespace
  5. on second cluster: create Import CR in default namespace referring to the exported service

On the second cluster, a service CR had been created with a similar output:

kubectl --kubeconfig ~/.kube/cl-peer2  get service
NAMESPACE     NAME                   TYPE           CLUSTER-IP   EXTERNAL-IP                                                                                       PORT(S)                  AGE
default       kubernetes             ClusterIP      10.96.0.1    <none>                                                                                            443/TCP                  3m55s
default       nginx-project   ExternalName   <none>       import-nginx-proj-default-0404b6d69d97227707e1c4f5daae56e8.clusterlink-system.svc.cluster.local   <none>                   57s

The service remains after clusterlink deletion.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions