Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateTotalMemoryGB ¶
Types ¶
type InstaSliceDaemonsetReconciler ¶
type InstaSliceDaemonsetReconciler struct { client.Client Scheme *runtime.Scheme NodeName string Config *config.Config // contains filtered or unexported fields }
InstaSliceDaemonsetReconciler reconciles a InstaSliceDaemonset object
func (*InstaSliceDaemonsetReconciler) SetupWithManager ¶
func (r *InstaSliceDaemonsetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MigDeviceInfo ¶
type MigDeviceInfo struct {
// contains filtered or unexported fields
}
type MigProfile ¶
this struct is created to represent profiles in human readable format and perform string comparison NVML provides int values which are hard to interpret.
func NewMigProfile ¶
func NewMigProfile(giProfileID, ciProfileID, ciEngProfileID int, giSliceCount, ciSliceCount uint32, migMemorySizeMB, totalDeviceMemoryBytes uint64) *MigProfile
NewMigProfile constructs a new MigProfile struct using info from the giProfiles and ciProfiles used to create it.
func (MigProfile) Attributes ¶
func (m MigProfile) Attributes() []string
Attributes returns the list of attributes associated with a MigProfile.
func (MigProfile) String ¶
func (m MigProfile) String() string
String returns the string representation of a MigProfile.
type ResPatchOperation ¶
type ResPatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value string `json:"value"` }
we struct to patch node with instaslice object
Click to show internal directories.
Click to hide internal directories.