reconfigure

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoRestartHostSystemdServicesOnExit = false
	NoRestartK8sDaemonsetsOnExit       = false
)

Functions

This section is empty.

Types

type Options

type Options struct {
	// Required opts
	NodeName                   string
	MigConfigFile              string
	SelectedMigConfig          string
	DefaultGPUClientsNamespace string

	// Optional opts
	WithReboot                 bool
	WithShutdownHostGPUClients bool
	CDIEnabled                 bool
	HostRootMount              string
	HostNvidiaDir              string
	HostMigManagerStateFile    string
	HostGPUClientServices      string
	HostKubeletService         string
	DriverRoot                 string
	DriverRootCtrPath          string
	DevRoot                    string
	DevRootCtrPath             string
	DriverLibraryPath          string
	NvidiaSMIPath              string
	NvidiaCDIHookPath          string
}

Options holds all the command line opts for the reconfigure command

type Reconfigure

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

Reconfigure handles the MIG reconfiguration process

func New

func New(ctx context.Context, clientset *kubernetes.Clientset, migPartedBinary []string, opts *Options) (*Reconfigure, error)

New creates a new Reconfigure instance

func (*Reconfigure) Run

func (r *Reconfigure) Run() error

Run executes the complete MIG reconfiguration process

Jump to

Keyboard shortcuts

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