lifecycle

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 11 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 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) (bool, error)
	UpdatePodLifecycleWithHandler(pod *v1.Pod, state appspub.LifecycleStateType, inPlaceUpdateHandler *appspub.LifecycleHook) (bool, 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 NewForTest added in v0.8.0

func NewForTest(c client.Client) 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