kubeinterface

package
v0.0.0-...-d4c0b77 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotationToNodeInfo

func AnnotationToNodeInfo(meta *metav1.ObjectMeta, existingNodeInfo *types.NodeInfo) (*types.NodeInfo, error)

AnnotationToNodeInfo is used by scheduler to convert annotation to node info

func GetPatchBytes

func GetPatchBytes(c v1core.CoreV1Interface, resourceName string, old, new, dataStruct interface{}) ([]byte, error)

func KubeNodeToNodeInfo

func KubeNodeToNodeInfo(knode *kubev1.Node, existingNodeInfo *types.NodeInfo) (*types.NodeInfo, error)

func KubePodInfoToPodInfo

func KubePodInfoToPodInfo(kubePodInfo *kubev1.Pod, invalidateExistingAnnotations bool) (*types.PodInfo, error)

KubePodInfoToPodInfo converts kubernetes pod info to group scheduler's simpler struct

func NodeInfoToAnnotation

func NodeInfoToAnnotation(meta *metav1.ObjectMeta, nodeInfo *types.NodeInfo) error

NodeInfoToAnnotation is used by device advertiser to convert node info to annotation

func PatchNodeMetadata

func PatchNodeMetadata(c v1core.CoreV1Interface, nodeName string, oldNode *kubev1.Node, newNode *kubev1.Node) (*kubev1.Node, error)

func PatchPodMetadata

func PatchPodMetadata(c v1core.CoreV1Interface, podName string, oldPod *kubev1.Pod, newPod *kubev1.Pod) (*kubev1.Pod, error)

func PodInfoToAnnotation

func PodInfoToAnnotation(meta *metav1.ObjectMeta, podInfo *types.PodInfo) error

func UpdatePodMetadata

func UpdatePodMetadata(c v1core.CoreV1Interface, newPod *kubev1.Pod) (*kubev1.Pod, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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