synchromanager

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterSynchroControllerFinalizer = "clusterpedia.io/cluster-synchro-controller"

Variables

This section is empty.

Functions

func NewItemExponentialFailureAndJitterSlowRateLimter added in v0.4.1

func NewItemExponentialFailureAndJitterSlowRateLimter(fastBaseDelay, fastMaxDelay, slowBaseDeploy time.Duration, slowMaxFactor float64, maxFastAttempts int) workqueue.RateLimiter

Types

type ItemExponentialFailureAndJitterSlowRateLimter added in v0.4.1

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

func (*ItemExponentialFailureAndJitterSlowRateLimter) Forget added in v0.4.1

func (r *ItemExponentialFailureAndJitterSlowRateLimter) Forget(item interface{})

func (*ItemExponentialFailureAndJitterSlowRateLimter) NumRequeues added in v0.4.1

func (r *ItemExponentialFailureAndJitterSlowRateLimter) NumRequeues(item interface{}) int

func (*ItemExponentialFailureAndJitterSlowRateLimter) When added in v0.4.1

type Manager

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

func NewManager

func NewManager(client crdclientset.Interface, storage storage.StorageFactory, syncConfig clustersynchro.ClusterSyncConfig, shardingName string) *Manager

func (*Manager) GetMetricsWriterList added in v0.8.0

func (manager *Manager) GetMetricsWriterList() map[string]metricsstore.MetricsWriterList

func (*Manager) Run

func (manager *Manager) Run(workers int, stopCh <-chan struct{})

func (*Manager) UpdateClusterAPIServerAndValidatedCondition added in v0.5.0

func (manager *Manager) UpdateClusterAPIServerAndValidatedCondition(name string, apiServerEndpoint string, synchro *clustersynchro.ClusterSynchro, reason, message string, status metav1.ConditionStatus)

func (*Manager) UpdateClusterShardingStatus added in v0.8.0

func (manager *Manager) UpdateClusterShardingStatus(ctx context.Context, name string, shardingName *string) error

func (*Manager) UpdateClusterStatus

func (manager *Manager) UpdateClusterStatus(ctx context.Context, name string, status *clusterv1alpha2.ClusterStatus) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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