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 DefaultNamespaceSlice = corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("2"), corev1.ResourceMemory: resource.MustParse("4Gi"), }
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.
Click to show internal directories.
Click to hide internal directories.