Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeDetector ¶
type ChangeDetector struct { // DiscoveryClient is used to do resource discovery. DiscoveryClient *discovery.DiscoveryClient // RESTMapper is used to convert between GVK and GVR RESTMapper meta.RESTMapper // ClusterResourcePlacementController maintains a rate limited queue which is used to store // the name of the changed clusterResourcePlacement and a reconcile function to consume the items in queue. ClusterResourcePlacementController controller.Controller // ClusterResourcePlacementController maintains a rate limited queue which is used to store any resources' // cluster wide key and a reconcile function to consume the items in queue. ResourceChangeController controller.Controller // MemberClusterPlacementController maintains a rate limited queue which is used to store // the name of the changed memberCluster and a reconcile function to consume the items in queue. MemberClusterPlacementController controller.Controller // InformerManager manages all the dynamic informers created by the discovery client InformerManager informer.Manager // DisabledResourceConfig contains all the api resources that we won't select DisabledResourceConfig *utils.DisabledResourceConfig // SkippedNamespaces contains all the namespaces that we won't select SkippedNamespaces map[string]bool // ConcurrentClusterPlacementWorker is the number of cluster `placement` reconcilers that are // allowed to sync concurrently. ConcurrentClusterPlacementWorker int // ConcurrentResourceChangeWorker is the number of resource change work that are // allowed to sync concurrently. ConcurrentResourceChangeWorker int }
ChangeDetector is a resource watcher which watches all types of resources in the cluster and reconcile the events.
func (*ChangeDetector) NeedLeaderElection ¶
func (d *ChangeDetector) NeedLeaderElection() bool
NeedLeaderElection implements LeaderElectionRunnable interface. So that the detector could run in the leader election mode.
Click to show internal directories.
Click to hide internal directories.