daemonset

package
v0.0.0-...-c268cc6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateTotalMemoryGB

func CalculateTotalMemoryGB(gpuInfoList map[string]string) int

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 NewInstasliceDaemonsetReconciler

func NewInstasliceDaemonsetReconciler(client client.Client, scheme *runtime.Scheme, nodeName string, config *config.Config) (*InstaSliceDaemonsetReconciler, error)

func (*InstaSliceDaemonsetReconciler) Reconcile

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

type MigProfile struct {
	C              int
	G              int
	GB             int
	GIProfileID    int
	CIProfileID    int
	CIEngProfileID int
}

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

Jump to

Keyboard shortcuts

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