Skip to content

Commit

Permalink
fix: namespacemap bidirectional
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 authored and adamjensenbot committed Dec 17, 2024
1 parent fdbf222 commit 44de60b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/virtualKubelet/reflection/namespacemap/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ func (nh *Handler) onUpdateNamespaceMap(oldObj, newObj interface{}) {
}

func (nh *Handler) checkNamespaceMapUniqueness(_ interface{}) bool {
nsList, err := nh.lister.List(labels.Everything())
nsList, err := nh.lister.List(labels.SelectorFromSet(labels.Set{
liqoconst.RemoteClusterID: string(forge.RemoteCluster),
liqoconst.ReplicationDestinationLabel: string(forge.RemoteCluster),
}))
utilruntime.Must(err)

if nNamespaceMaps := len(nsList); nNamespaceMaps > 1 {
Expand Down

0 comments on commit 44de60b

Please sign in to comment.