constants

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AnnotationAllowPreemption = DomainYuniKorn + "allow-preemption"

AnnotationAllowPreemption set on PriorityClass, opt out of preemption for pods with this priority class

View Source
const AnnotationApplicationID = DomainYuniKorn + "app-id"
View Source
const AnnotationEnableYuniKorn = DomainYuniKorn + "namespace.enableYuniKorn"

AnnotationEnableYuniKorn sets the scheduler name to YuniKorn for workloads in the namespace even if not set in the admission config. Overrides the regexp behaviour if set, checked before the regexp is evaluated. true: set the scheduler name to YuniKorn false: do not do anything

View Source
const AnnotationGenerateAppID = DomainYuniKorn + "namespace.generateAppId"

AnnotationGenerateAppID adds application ID to workloads in the namespace even if not set in the admission config. Overrides the regexp behaviour if set, checked before the regexp is evaluated. true: add an application ID label false: do not add an application ID

View Source
const AnnotationIgnoreApplication = DomainYuniKorn + "ignore-application"

AnnotationIgnoreApplication set on Pod prevents by admission controller, prevents YuniKorn from honoring application ID

View Source
const AnnotationParentQueue = DomainYuniKorn + "parentqueue"
View Source
const AnnotationPlaceholderFlag = DomainYuniKorn + "placeholder"
View Source
const AnnotationQueueName = DomainYuniKorn + "queue"
View Source
const AnnotationSchedulingPolicyParam = DomainYuniKorn + "schedulingPolicyParameters"
View Source
const AnnotationTaskGroupName = DomainYuniKorn + "task-group-name"
View Source
const AnnotationTaskGroups = DomainYuniKorn + "task-groups"
View Source
const AppTagImagePullSecrets = "imagePullSecrets"
View Source
const AppTagNamespace = "namespace"
View Source
const AppTagNamespaceParentQueue = "namespace.parentqueue"
View Source
const ApplicationDefaultQueue = "root.default"
View Source
const ApplicationInsufficientResourcesFailure = "ResourceReservationTimeout"
View Source
const ApplicationRejectedFailure = "ApplicationRejected"
View Source
const AutoGenAppPrefix = "yunikorn"

Admission Controller pod label update constants

View Source
const AutoGenAppSuffix = "autogen"
View Source
const CPUQuota = DomainYuniKorn + "namespace.max.cpu"

namespace.max.* (Retaining for backwards compatibility. Need to be removed in next major release)

View Source
const ConfigMapName = "yunikorn-configs"

Configuration

View Source
const DaemonSetType = "DaemonSet"

OwnerReferences

View Source
const DefaultAppNamespace = "default"
View Source
const DefaultConfigMapName = "yunikorn-defaults"
View Source
const DefaultNodeAttributeHostNameKey = "si.io/hostname"

Cluster

View Source
const DefaultNodeAttributeRackNameKey = "si.io/rackname"
View Source
const DefaultNodeInstanceTypeNodeLabelKey = "node.kubernetes.io/instance-type"
View Source
const DefaultPartition = "default"
View Source
const DefaultRackName = "/rack-default"
View Source
const DefaultUser = "nobody"
View Source
const DefaultUserLabel = DomainYuniKorn + "username"
View Source
const DomainYuniKorn = siCommon.DomainYuniKorn
View Source
const False = "false"
View Source
const GzipSuffix = "gz"

Compression Algorithms for schedulerConfig

View Source
const LabelApp = "app"

Application

View Source
const LabelApplicationID = "applicationId"
View Source
const LabelDisableStateAware = "disableStateAware"
View Source
const LabelPlaceholderFlag = "placeholder"
View Source
const LabelQueueName = "queue"
View Source
const MemQuota = DomainYuniKorn + "namespace.max.memory"
View Source
const NamespaceGuaranteed = DomainYuniKorn + "namespace.guaranteed"

NamespaceGuaranteed Namespace Guaranteed

View Source
const NamespaceQuota = DomainYuniKorn + "namespace.quota"

NamespaceQuota Namespace Quota

View Source
const PlaceholderContainerImage = "registry.k8s.io/pause:3.7"

Gang scheduling

View Source
const PlaceholderContainerName = "pause"
View Source
const PlaceholderPodRestartPolicy = "Never"
View Source
const RootQueue = "root"
View Source
const SchedulerName = "yunikorn"
View Source
const SchedulingPolicyParamDelimiter = " "
View Source
const SchedulingPolicyStyleParam = "gangSchedulingStyle"
View Source
const SchedulingPolicyStyleParamDefault = "Soft"
View Source
const SchedulingPolicyTimeoutParam = "placeholderTimeoutInSeconds"
View Source
const SparkLabelAppID = "spark-app-selector"

Spark

View Source
const True = "true"

Common

Variables

View Source
var SchedulingPolicyStyleParamValues = map[string]string{"Hard": "Hard", "Soft": "Soft"}

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