k8s_utils

package
v0.0.0-...-4ad4c41 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKubernetesResourceAlreadyExistError

func IsKubernetesResourceAlreadyExistError(err error) bool

func IsKubernetesResourceNotExist

func IsKubernetesResourceNotExist(err error) bool

func RetryCreateAndWaitPod

func RetryCreateAndWaitPod(ctx context.Context, cli client.Client, pod *corev1.Pod, interval time.Duration, maxRetries int) (*corev1.Pod, error)

func RetryPushPod2List

func RetryPushPod2List(_ context.Context, sl *list.SafeListLimited, task *v1alpha1.OrderStep, interval time.Duration, maxRetries int) error

func TaskAddNormalEvent

func TaskAddNormalEvent(recorder record.EventRecorder, orderTaskName string)

func TaskDeleteEvent

func TaskDeleteEvent(recorder record.EventRecorder, orderTaskName string)

func TaskUpgradeEvent

func TaskUpgradeEvent(recorder record.EventRecorder, orderTaskName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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