util

package
v0.0.0-...-9aebcc3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoResyncPeriodFunc

func NoResyncPeriodFunc() time.Duration

NoResyncPeriodFunc Returns 0 for resyncPeriod in case resyncing is not needed. See: github.com/kubernetes/kubernetes/pkg/controller/controller_utils.go

func PatchPod

func PatchPod(kubeClient kubernetes.Interface, oldData *corev1.Pod, newData *corev1.Pod) (*corev1.Pod, error)

PatchPod perform a direct patch update for the specified Pod.

func PatchStatefulSet

func PatchStatefulSet(kubeClient kubernetes.Interface, oldData *appsv1beta1.StatefulSet, newData *appsv1beta1.StatefulSet) (*appsv1beta1.StatefulSet, error)

PatchStatefulSet performs a direct patch update for the specified StatefulSet.

func UpdatePod

func UpdatePod(kubeClient kubernetes.Interface, newData *corev1.Pod) (*corev1.Pod, error)

UpdatePod performs a direct update for the specified Pod.

func UpdateStatefulSet

func UpdateStatefulSet(kubeClient kubernetes.Interface, newData *appsv1beta1.StatefulSet) (*appsv1beta1.StatefulSet, error)

UpdateStatefulSet performs a direct update for the specified StatefulSet.

func WaitForCacheSync

func WaitForCacheSync(controllerName string, stopCh <-chan struct{}, cacheSyncs ...cache.InformerSynced) bool

WaitForCacheSync is a wrapper around cache.WaitForCacheSync that generates log messages indicating that the controller identified by controllerName is waiting for syncs, followed by either a successful or failed sync.

Types

This section is empty.

Jump to

Keyboard shortcuts

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