Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Constants
- func CheckNvidiaPlugin(ctx context.Context, nodeObj *corev1.Node) bool
- func CheckResourceStatus(obj client.Object, kubeClient client.Client, timeoutDuration time.Duration) error
- func CreateResource(ctx context.Context, resource client.Object, kubeClient client.Client) error
- func ExtractObjFields(obj interface{}) (instanceType, namespace, name string, labelSelector *metav1.LabelSelector, ...)
- func GetNode(ctx context.Context, nodeName string, kubeClient client.Client) (*corev1.Node, error)
- func GetResource(ctx context.Context, name, namespace string, kubeClient client.Client, ...) error
- func ListNodes(ctx context.Context, kubeClient client.Client, ...) (*corev1.NodeList, error)
- func UpdateNodeWithLabel(ctx context.Context, nodeName, labelKey, labelValue string, ...) error
Constants ¶
View Source
const ( LabelKeyNvidia = "accelerator" LabelValueNvidia = "nvidia" CapacityNvidiaGPU = "nvidia.com/gpu" )
Variables ¶
This section is empty.
Functions ¶
func CheckResourceStatus ¶
func CreateResource ¶
func ExtractObjFields ¶
func ExtractObjFields(obj interface{}) (instanceType, namespace, name string, labelSelector *metav1.LabelSelector,
nameLabel, namespaceLabel string, err error)
func GetResource ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.