Documentation
¶
Index ¶
- func CheckGPUVisible(ctx context.Context, client client.Client, clientset *kubernetes.Clientset, ...) (bool, error)
- func CheckNoGPULoads(ctx context.Context, client client.Client, clientset *kubernetes.Clientset, ...) error
- func CheckNodeCapacitySufficient(ctx context.Context, client client.Client, nodeName string, ...) (bool, error)
- func CheckNodeExisted(ctx context.Context, client client.Client, nodeName string) error
- func ContainsString(slice []string, s string) bool
- func CreateDeviceTaint(ctx context.Context, client client.Client, ...) error
- func DrainGPU(ctx context.Context, client client.Client, clientset *kubernetes.Clientset, ...) error
- func GenerateComposableResourceName(typeName string) string
- func GetAllNodes(ctx context.Context, client client.Client) (*corev1.NodeList, error)
- func RestartDaemonset(ctx context.Context, client client.Client, namespace string, name string) error
- func RunNvidiaSmi(ctx context.Context, client client.Client, clientset *kubernetes.Clientset, ...) error
- func SetNodeSchedulable(ctx context.Context, client client.Client, ...) (bool, error)
- type AccountedAppInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGPUVisible ¶
func CheckGPUVisible(ctx context.Context, client client.Client, clientset *kubernetes.Clientset, restConfig *rest.Config, deviceResourceType string, resource *crov1alpha1.ComposableResource) (bool, error)
func CheckNoGPULoads ¶
func CheckNodeExisted ¶
func ContainsString ¶
func CreateDeviceTaint ¶
func CreateDeviceTaint(ctx context.Context, client client.Client, resource *crov1alpha1.ComposableResource) error
func GetAllNodes ¶
func RestartDaemonset ¶
func RunNvidiaSmi ¶
func SetNodeSchedulable ¶
Types ¶
type AccountedAppInfo ¶
func (AccountedAppInfo) String ¶
func (a AccountedAppInfo) String() string
Click to show internal directories.
Click to hide internal directories.