utils

package
v0.0.0-...-89e9fa0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPodExist

func CheckPodExist(clientset *kubernetes.Clientset, name string, namespace string) (*corev1.Pod, error)

func GetActualRunningPod

func GetActualRunningPod(childPods *corev1.PodList) (int, corev1.PodList, corev1.PodList)

func GetDummyServiceIPAndPort

func GetDummyServiceIPAndPort(clientset *kubernetes.Clientset, ctx context.Context, namespace string) (string, int32)

func GetSourcePodTemplate

func GetSourcePodTemplate(clientset *kubernetes.Clientset, sourcePodName string, namespace string) (*corev1.PodTemplateSpec, error)

func PrintContainerIDs

func PrintContainerIDs(clientset *kubernetes.Clientset, namespace string) ([]types.Container, error)

func PushDockerImage

func PushDockerImage(localCheckpointPath string, containerName string, podName string)

func RetrieveContainerName

func RetrieveContainerName(path string) string

func RetrievePodName

func RetrievePodName(path string) string

func WaitForContainerReady

func WaitForContainerReady(podName, namespace, containerName string, clientset *kubernetes.Clientset) error

func WaitForPodDeletion

func WaitForPodDeletion(ctx context.Context, podName string, namespace string, clientset *kubernetes.Clientset) error

func WaitForServiceReady

func WaitForServiceReady(ctx context.Context, serviceName, namespace string, clientset *kubernetes.Clientset)

Types

This section is empty.

Jump to

Keyboard shortcuts

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