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
Click to show internal directories.
Click to hide internal directories.