Documentation ¶
Index ¶
- func AnnotationToNodeInfo(meta *metav1.ObjectMeta, existingNodeInfo *types.NodeInfo) (*types.NodeInfo, error)
- func GetPatchBytes(c v1core.CoreV1Interface, resourceName string, ...) ([]byte, error)
- func KubeNodeToNodeInfo(knode *kubev1.Node, existingNodeInfo *types.NodeInfo) (*types.NodeInfo, error)
- func KubePodInfoToPodInfo(kubePodInfo *kubev1.Pod, invalidateExistingAnnotations bool) (*types.PodInfo, error)
- func NodeInfoToAnnotation(meta *metav1.ObjectMeta, nodeInfo *types.NodeInfo) error
- func PatchNodeMetadata(c v1core.CoreV1Interface, nodeName string, oldNode *kubev1.Node, ...) (*kubev1.Node, error)
- func PatchPodMetadata(c v1core.CoreV1Interface, podName string, oldPod *kubev1.Pod, ...) (*kubev1.Pod, error)
- func PodInfoToAnnotation(meta *metav1.ObjectMeta, podInfo *types.PodInfo) error
- func UpdatePodMetadata(c v1core.CoreV1Interface, newPod *kubev1.Pod) (*kubev1.Pod, error)
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 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 PatchPodMetadata ¶
func PodInfoToAnnotation ¶
func PodInfoToAnnotation(meta *metav1.ObjectMeta, podInfo *types.PodInfo) error
func UpdatePodMetadata ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.