utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusUpToDateExpectation = expectations.NewResourceVersionExpectation()
)

Functions

func BeginOperateLifecycle

func BeginOperateLifecycle(client client.Client, adapter podopslifecycle.LifecycleAdapter, pod *corev1.Pod) (bool, error)

func CancelOpsLifecycle

func CancelOpsLifecycle(ctx context.Context, client client.Client, adapter podopslifecycle.LifecycleAdapter, pod *corev1.Pod) error

func EnqueueOperationJobFromPod

func EnqueueOperationJobFromPod(c client.Client, pod *corev1.Pod, q *workqueue.RateLimitingInterface, fn func(client.Client, *corev1.Pod) (sets.String, bool))

func FinishOperateLifecycle

func FinishOperateLifecycle(client client.Client, adapter podopslifecycle.LifecycleAdapter, pod *corev1.Pod) error

func IsJobFinished

func IsJobFinished(instance *appsv1alpha1.OperationJob) bool

func MapOpsStatusByPod

func MapOpsStatusByPod(instance *appsv1alpha1.OperationJob) map[string]*appsv1alpha1.OpsStatus

func MarkOperationJobFailed

func MarkOperationJobFailed(instance *appsv1alpha1.OperationJob)

func SetOpsStatusError added in v0.6.0

func SetOpsStatusError(candidate *opscore.OpsCandidate, reason string, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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