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: 6 Imported by: 0

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

ShadowClusterCapacity has a fake "unlimited" capacity

Functions

This section is empty.

Types

type SchedulerContextKey

type SchedulerContextKey string

SchedulerContextKey is a type for context key

Jump to

Keyboard shortcuts

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