Documentation ¶
Index ¶
- func CheckInPlaceUpdateCompleted(pod *v1.Pod) error
- func GetCondition(pod *v1.Pod) *v1.PodCondition
- func InjectReadinessGate(pod *v1.Pod)
- type Interface
- func New(c client.Client, revisionKey string) Interface
- func NewForInformer(informer coreinformers.PodInformer, revisionKey string) Interface
- func NewForTest(c client.Client, revisionKey string, now func() metav1.Time) Interface
- func NewForTypedClient(c clientset.Interface, revisionKey string) Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInPlaceUpdateCompleted ¶
CheckInPlaceUpdateCompleted checks whether imageID in pod status has been changed since in-place update. If the imageID in containerStatuses has not been changed, we assume that kubelet has not updated containers in Pod.
func GetCondition ¶
func GetCondition(pod *v1.Pod) *v1.PodCondition
GetCondition returns the InPlaceUpdateReady condition in Pod.
func InjectReadinessGate ¶
InjectReadinessGate injects InPlaceUpdateReady into pod.spec.readinessGates
Types ¶
type Interface ¶
type Interface interface { UpdateInPlace(pod *v1.Pod, oldRevision, newRevision *apps.ControllerRevision) (bool, error) UpdateCondition(pod *v1.Pod) error }
Interface for managing pods in-place update.
func NewForInformer ¶
func NewForInformer(informer coreinformers.PodInformer, revisionKey string) Interface
func NewForTest ¶
Click to show internal directories.
Click to hide internal directories.