constants

package
v0.0.0-...-4d19ac6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuperClusterInfoCfgMap = "supercluster-info"
	SuperClusterIDKey      = "id"
)
View Source
const (
	// LabelScheduledCluster is the super cluster the pod schedules to.
	LabelScheduledCluster = "scheduler.virtualcluster.io/superCluster"

	// LabelScheduledPlacements is the scheduled placements the namespace schedules to.
	LabelScheduledPlacements = "scheduler.virtualcluster.io/placements"

	// LabelNamespaceSlice is the scheduled slice size of the namespace.
	LabelNamespaceSlice = "scheduler.virtualcluster.io/slice"
)
View Source
const (
	DefaultSyncerClientQPS   = 1000
	DefaultSyncerClientBurst = 2000

	// DefaultRequestTimeout is set for all client-go request. This is the absolute
	// timeout of the HTTP request, including reading the response body.
	DefaultRequestTimeout = 30 * time.Second

	// MaxReconcileRetryAttempts is the limit to stop reconcile request if it keeps failing.
	// According to controller workqueue default rate limiter algorithm, retry 16 times takes around 180 seconds.
	MaxReconcileRetryAttempts = 16

	StatusCodeOK                     = "OK"
	StatusCodeExceedMaxRetryAttempts = "ExceedMaxRetryAttempts"
	StatusCodeError                  = "Error"
	StatusCodeBadRequest             = "BadRequest"
)

Variables

View Source
var ResourceSyncerUserAgent = "resource-syncer/" + version.BriefVersion()

ResourceSyncerUserAgent is the userAgent name when starting resource syncer. TODO: make this configurable in Cluster instance.

View Source
var SuperClusterID string

SuperClusterID is initialized when syncer started, it won't change during syncer life cycle.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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