File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
31
31
"k8s.io/apimachinery/pkg/api/meta"
32
32
"k8s.io/apimachinery/pkg/runtime"
33
33
kerrors "k8s.io/apimachinery/pkg/util/errors"
34
+ "k8s.io/apimachinery/pkg/util/sets"
34
35
"k8s.io/apimachinery/pkg/util/wait"
35
36
"k8s.io/apimachinery/pkg/watch"
36
37
"k8s.io/client-go/rest"
@@ -630,6 +631,15 @@ func (cm *controllerManager) Start(ctx context.Context) (err error) { //nolint:g
630
631
return err
631
632
}
632
633
}
634
+ clusterListSet := sets .New (clusterList ... )
635
+ for name := range cm .logicalClusters {
636
+ if clusterListSet .Has (name ) {
637
+ continue
638
+ }
639
+ if err := cm .removeLogicalCluster (name ); err != nil {
640
+ return err
641
+ }
642
+ }
633
643
cm .syncClusterAwareRunnables ()
634
644
return nil
635
645
}
You can’t perform that action at this time.
0 commit comments