Documentation ¶
Index ¶
- func CleanupNFDObjects(ctx context.Context, cli *nfdclient.Clientset, namespace string)
- func CleanupNode(ctx context.Context, cs clientset.Interface)
- func DeleteTaint(taints []corev1.Taint, taintToDelete *corev1.Taint) ([]corev1.Taint, bool)
- func GetNode(nodes []corev1.Node, nodeName string) corev1.Node
- func GetNonControlPlaneNodes(ctx context.Context, cli clientset.Interface) ([]corev1.Node, error)
- func NewGPUJob(name string, image string, gpuCount int) *batchv1.Job
- func TaintExists(taints []corev1.Taint, taintToFind *corev1.Taint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupNFDObjects ¶
func CleanupNode ¶
CleanupNode deletes all NFD/GFD related metadata from the Node object, i.e. labels and annotations
func DeleteTaint ¶
DeleteTaint removes all the taints that have the same key and effect to given taintToDelete.
func GetNonControlPlaneNodes ¶
GetNonControlPlaneNodes gets the nodes that are not tainted for exclusive control-plane usage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.