status

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventReasonGetObjectStatusError = "GetObjectStatusError"
)
View Source
const (
	StatusControllerName = "status-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusController

type StatusController struct {
	// contains filtered or unexported fields
}

StatusController collects the status of resources in member clusters.

func NewStatusController

func NewStatusController(
	kubeClient kubernetes.Interface,
	fedClient fedclient.Interface,

	fedObjectInformer fedcorev1a1informers.FederatedObjectInformer,
	clusterFedObjectInformer fedcorev1a1informers.ClusterFederatedObjectInformer,
	collectedStatusInformer fedcorev1a1informers.CollectedStatusInformer,
	clusterCollectedStatusInformer fedcorev1a1informers.ClusterCollectedStatusInformer,

	ftcManager informermanager.FederatedTypeConfigManager,
	fedInformerManager informermanager.FederatedInformerManager,

	clusterAvailableDelay, clusterUnavailableDelay, memberObjectEnqueueDelay time.Duration,

	logger klog.Logger,
	workerCount int,
	metrics stats.Metrics,
) (*StatusController, error)

NewStatusController returns a new status controller for the configuration

func (*StatusController) HasSynced

func (s *StatusController) HasSynced() bool

Check whether all data stores are in sync. False is returned if any of the informer/stores is not yet synced with the corresponding api server.

func (*StatusController) IsControllerReady

func (s *StatusController) IsControllerReady() bool

func (*StatusController) Run

func (s *StatusController) Run(ctx context.Context)

Run runs the status controller

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL