config

package
v0.39.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncClientConfig

type AsyncClientConfig struct {
	// contains filtered or unexported fields
}

AsyncClientConfig is the configuration for the internal async client

func (AsyncClientConfig) MaxRetryCount

func (acc AsyncClientConfig) MaxRetryCount() int

MaxRetryCount returns the maximum number of times the internal async client retries calls to the api server

type FifoConfig

type FifoConfig struct {
	// DefaultEnforceAfterPodAge specifies the time since the pod was created after which a driver which does not fit starts blocking the remaining drivers
	// (Default is 0, i.e. we always block the queue)
	DefaultEnforceAfterPodAge time.Duration `yaml:"default-enforce-after-pod-age,omitempty"`
	// EnforceAfterPodAgeByInstanceGroup allows customizing the fifo enforcement after pod age by instance group
	EnforceAfterPodAgeByInstanceGroup map[string]time.Duration `yaml:"enforce-after-pod-age-by-instance-group,omitempty"`
}

FifoConfig enables the fine-tuning of FIFO enforcement

type Install

type Install struct {
	config.Install     `yaml:",inline"`
	config.Runtime     `yaml:",inline"`
	Kubeconfig         string            `yaml:"kube-config,omitempty"`
	FIFO               bool              `yaml:"fifo,omitempty"`
	FifoConfig         FifoConfig        `yaml:"fifo-config,omitempty"`
	QPS                float32           `yaml:"qps,omitempty"`
	Burst              int               `yaml:"burst,omitempty"`
	BinpackAlgo        string            `yaml:"binpack,omitempty"`
	InstanceGroupLabel string            `yaml:"instance-group-label,omitempty"`
	AsyncClientConfig  AsyncClientConfig `yaml:"async-client-config,omitempty"`

	// Deprecated: assumed true, value not used
	UseExperimentalHostPriorities bool `yaml:"use-experimental-host-priorities,omitempty"`

	DriverPrioritizedNodeLabel   *LabelPriorityOrder `yaml:"driver-prioritized-node-label,omitempty"`
	ExecutorPrioritizedNodeLabel *LabelPriorityOrder `yaml:"executor-prioritized-node-label,omitempty"`

	ResourceReservationCRDAnnotations map[string]string `yaml:"resource-reservation-crd-annotations,omitempty"`

	WebhookServiceConfig `yaml:"webhook-service-config"`
}

Install contains the install time configuration of the server and kubernetes dependency

type LabelPriorityOrder

type LabelPriorityOrder struct {
	Name                     string   `yaml:"label-name"`
	DescendingPriorityValues []string `yaml:"label-values-descending-priority"`
}

LabelPriorityOrder is the configuration for denoting an ordered list of values of a node label that will be used to sort candidate nodes for drivers or executors

type WebhookServiceConfig added in v0.2.0

type WebhookServiceConfig struct {
	Namespace   string `yaml:"namespace"`
	ServiceName string `yaml:"service-name"`
	ServicePort int32  `yaml:"service-port"`
}

WebhookServiceConfig specifies the k8s service which the api server will call to convert between different versions of the ResourceReservation CRD

Jump to

Keyboard shortcuts

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