Skip to content

Commit 542b44c

Browse files
cheina97fra98
authored andcommitted
fix: namespacemap bidirectional
1 parent fdbf222 commit 542b44c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/virtualKubelet/reflection/namespacemap/namespace.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ func (nh *Handler) onUpdateNamespaceMap(oldObj, newObj interface{}) {
121121
}
122122

123123
func (nh *Handler) checkNamespaceMapUniqueness(_ interface{}) bool {
124-
nsList, err := nh.lister.List(labels.Everything())
124+
nsList, err := nh.lister.List(labels.SelectorFromSet(labels.Set{
125+
liqoconst.RemoteClusterID: string(forge.RemoteCluster),
126+
liqoconst.ReplicationDestinationLabel: string(forge.RemoteCluster),
127+
}))
125128
utilruntime.Must(err)
126129

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

0 commit comments

Comments
 (0)