node

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutationDPOptions

func MutationDPOptions(opt dpoptions.Options) func(*NodeConfig)

func MutationMonitorOptions

func MutationMonitorOptions(opt monitoroptions.Options) func(*NodeConfig)

func ParseExcludeDevices

func ParseExcludeDevices(excludeDevices string) sets.Int

Types

type NodeConfig

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

func NewNodeConfig

func NewNodeConfig(mutations ...func(*NodeConfig)) (*NodeConfig, error)

func (NodeConfig) CGroupDriver

func (nc NodeConfig) CGroupDriver() string

func (NodeConfig) DeviceCoresScaling

func (nc NodeConfig) DeviceCoresScaling() float64

func (NodeConfig) DeviceListStrategy added in v0.4.1

func (nc NodeConfig) DeviceListStrategy() string

func (NodeConfig) DeviceMemoryFactor

func (nc NodeConfig) DeviceMemoryFactor() int

func (NodeConfig) DeviceMemoryScaling

func (nc NodeConfig) DeviceMemoryScaling() float64

func (NodeConfig) DevicePluginPath

func (nc NodeConfig) DevicePluginPath() string

func (NodeConfig) DeviceSplitCount

func (nc NodeConfig) DeviceSplitCount() int

func (NodeConfig) ExcludeDevices

func (nc NodeConfig) ExcludeDevices() sets.Int

func (NodeConfig) GDSEnabled added in v0.3.0

func (nc NodeConfig) GDSEnabled() bool

func (NodeConfig) MOFEDEnabled added in v0.3.1

func (nc NodeConfig) MOFEDEnabled() bool

func (NodeConfig) NodeName

func (nc NodeConfig) NodeName() string

func (NodeConfig) OpenKernelModules added in v0.4.0

func (nc NodeConfig) OpenKernelModules() bool

func (NodeConfig) String

func (nc NodeConfig) String() string

type NodeConfigMap

type NodeConfigMap struct {
	NodeName            string   `json:"nodeName"`
	CGroupDriver        *string  `json:"cgroupDriver,omitempty"`
	DeviceListStrategy  *string  `json:"deviceListStrategy,omitempty"`
	DeviceSplitCount    *int     `json:"deviceSplitCount,omitempty"`
	DeviceMemoryScaling *float64 `json:"deviceMemoryScaling,omitempty"`
	DeviceMemoryFactor  *int     `json:"deviceMemoryFactor,omitempty"`
	DeviceCoresScaling  *float64 `json:"deviceCoresScaling,omitempty"`
	ExcludeDevices      *string  `json:"excludeDevices,omitempty"`
	GDSEnabled          *bool    `json:"gdsEnabled,omitempty"`
	MOFEDEnabled        *bool    `json:"mofedEnabled,omitempty"`
	OpenKernelModules   *bool    `json:"openKernelModules,omitempty"`
}

Jump to

Keyboard shortcuts

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