lifecycle

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodLifecycleState

func GetPodLifecycleState(pod *v1.Pod) appspub.LifecycleStateType

func IsHookMarkPodNotReady added in v1.2.0

func IsHookMarkPodNotReady(lifecycleHook *appspub.LifecycleHook) bool

func IsLifecycleMarkPodNotReady added in v1.2.0

func IsLifecycleMarkPodNotReady(lifecycle *appspub.Lifecycle) bool

func IsPodAllHooked added in v0.8.0

func IsPodAllHooked(hook *appspub.LifecycleHook, pod *v1.Pod) bool

func IsPodHooked

func IsPodHooked(hook *appspub.LifecycleHook, pod *v1.Pod) bool

func SetPodLifecycle

func SetPodLifecycle(state appspub.LifecycleStateType) func(*v1.Pod)

Types

type Interface added in v0.8.0

type Interface interface {
	UpdatePodLifecycle(pod *v1.Pod, state appspub.LifecycleStateType, markPodNotReady bool) (bool, *v1.Pod, error)
	UpdatePodLifecycleWithHandler(pod *v1.Pod, state appspub.LifecycleStateType, inPlaceUpdateHandler *appspub.LifecycleHook) (bool, *v1.Pod, error)
}

Interface for managing pods lifecycle.

func New added in v0.8.0

func New(c client.Client) Interface

func NewForInformer added in v0.8.0

func NewForInformer(informer coreinformers.PodInformer) Interface

func NewForTypedClient added in v0.8.0

func NewForTypedClient(c clientset.Interface) Interface

Jump to

Keyboard shortcuts

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