options

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Component = "devicePlugin"

	// CorePlugin feature gate will report the virtual cores of the node device to kubelet.
	CorePlugin featuregate.Feature = "CorePlugin"
	// MemoryPlugin feature gate will report the virtual memory of the node device to kubelet.
	MemoryPlugin featuregate.Feature = "MemoryPlugin"
	// Reschedule feature gate will attempt to reschedule Pods that meet the criteria.
	Reschedule featuregate.Feature = "Reschedule"
	// GPUTopology feature gate will report gpu topology information to node.
	GPUTopology featuregate.Feature = "GPUTopology"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	KubeConfigFile string
	MasterURL      string
	QPS            float64
	Burst          int

	NodeName            string
	CGroupDriver        string
	DeviceListStrategy  string
	DeviceSplitCount    int
	DeviceMemoryScaling float64
	DeviceMemoryFactor  int
	DeviceCoresScaling  float64
	NodeConfigPath      string
	ExcludeDevices      string
	DevicePluginPath    string
	PprofBindPort       int
	GDSEnabled          bool
	MOFEDEnabled        bool
	OpenKernelModules   bool
	FeatureGate         featuregate.MutableFeatureGate
}

func NewOptions

func NewOptions() *Options

func (*Options) InitFlags

func (o *Options) InitFlags(fs *flag.FlagSet)

func (*Options) PrintAndExitIfRequested

func (o *Options) PrintAndExitIfRequested()

Jump to

Keyboard shortcuts

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