Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultSchedulerClientQPS allows 100 qps DefaultSchedulerClientQPS = 100 // DefaultSchedulerClientBurst allows burst of 500 qps DefaultSchedulerClientBurst = 500 // 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 // VirtualClusterWorker set amount of workers VirtualClusterWorker = 3 // SuperClusterWorker set amount of workers SuperClusterWorker = 3 // KubeconfigAdminSecretName name of secret with kubeconfig for admin KubeconfigAdminSecretName = "admin-kubeconfig" // #nosec G101 -- This is a secret name // InternalSchedulerCache name of the context key with cache settings InternalSchedulerCache SchedulerContextKey = "tenancy.x-k8s.io/schedulercache" // InternalSchedulerEngine name of the context key with engine InternalSchedulerEngine SchedulerContextKey = "tenancy.x-k8s.io/schedulerengine" // InternalSchedulerManager name of the context key with manager InternalSchedulerManager SchedulerContextKey = "tenancy.x-k8s.io/schedulermanager" )
Variables ¶
View Source
var SchedulerUserAgent = "scheduler" + version.BriefVersion()
SchedulerUserAgent is a useragent for scheduler
View Source
var ShadowClusterCapacity = corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse(fmt.Sprintf("%d", math.MaxInt32)), corev1.ResourceMemory: resource.MustParse(fmt.Sprintf("%dGi", math.MaxInt32)), }
ShadowClusterCapacity has a fake "unlimited" capacity
Functions ¶
This section is empty.
Types ¶
type SchedulerContextKey ¶
type SchedulerContextKey string
SchedulerContextKey is a type for context key
Click to show internal directories.
Click to hide internal directories.