options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CERTDIR               = `/tmp/ssl`
	CERT_Secret_Namespace = ServiceNamespace
	CERT_Secret_Name      = ServiceName

	ServiceNamespace = `kube-system`
	ServiceName      = `nvidia-gpu-scheduler`
	APIGROUP         = `nvidia-gpu-scheduler`
	APIVERSION       = `v1`
	RESOURCES_GPUPOD = `gpupods`
	RESOURCE_GPUPOD  = `gpupod`
	KIND_GPUPOD      = `GpuPod`

	SCHEDULE                            = `schedule`
	SCHEDULE_FILTER                     = `filter`
	SCHEDULE_PREEMPT                    = `preempt`
	SCHEDULE_PRIORITIZE                 = `prioritize`
	SCHEDULE_ANNOTATION                 = `nvidia-gpu-scheduler/gpu.model`
	RESOURCES_GPUNODE                   = `gpunodes`
	RESOURCE_GPUNODE                    = `gpunode`
	KIND_GPUNODE                        = `GpuNode`
	SchedulerRouter_Parallelism_Default = 10

	//v0.2.0
	NamespaceNodeLease = "nvidia-gpu-scheduler-node-lease"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsPodResourceFlags

type MetricsPodResourceFlags struct {
	BindAddress     string          `mapstructure:"bind-address" yaml:"bind-address,omitempty"`
	BindPort        int             `mapstructure:"secure-port" yaml:"secure-port,omitempty"`
	TLSAuto         bool            `mapstructure:"tls-auto" yaml:"tls-autos"`
	TLSConfig       TLSCONFIG       `mapstructure:"tls-config" yaml:"tls-config,omitempty"`
	WriteConfigTo   string          `mapstructure:"write-config-to" yaml:"-"`
	EnableScheduler bool            `mapstructure:"enable-scheduler" yaml:"enable-scheduler"`
	Scheduler       SchedulerConfig `mapstructure:"scheduler" yaml:"scheduler"`
}

type SchedulerConfig

type SchedulerConfig struct {
	Parallelism int `mapstructure:"parallelism" yaml:"parallelism"`
}

type TLSCONFIG

type TLSCONFIG struct {
	CACert string `mapstructure:"tls-ca-file" yaml:"tls-ca-file,omitempty"`
	Cert   string `mapstructure:"tls-cert-file" yaml:"tls-cert-file,omitempty"`
	Key    string `mapstructure:"tls-private-key-file" yaml:"tls-private-key-file,omitempty"`
}

Jump to

Keyboard shortcuts

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