tools

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndStartRecorder

func CreateAndStartRecorder(kubeclientset kubernetes.Interface, name string) record.EventRecorder

CreateAndStartRecorder creates and starts a new recorder with the given name

func IndexByIDKeyFun

func IndexByIDKeyFun() cache.Indexers

IndexByIDKeyFun returns a function for indexing a cache by ID

func MetaResourceNamespaceKeyFunc

func MetaResourceNamespaceKeyFunc(kind string, obj interface{}) (string, error)

MetaResourceNamespaceKeyFunc is a convenient KeyFunc which knows how to make keys for API objects which implement meta.Interface. The key uses the format <kind>/<namespace>/<name> unless <namespace> is empty, then it's <kind>/<name>.

func NodeIsReady

func NodeIsReady(node *corev1.Node) bool

NodeIsReady returns true if the given node has a Ready status, else false. See https://kubernetes.io/docs/concepts/nodes/node/#condition for more info.

func NodeIsTargetKubernetesVersion

func NodeIsTargetKubernetesVersion(cup *provisioncsv3.ClusterUpgrade, node *corev1.Node) bool

NodeIsTargetKubernetesVersion checks if the current node version matches the target version of the cluster upgrade that is being processed. This only checks that the kubelet is up to date, and does not check the static pods. NOTE: this should only be called with upgrades of type Kubernetes

func SplitMetaResourceNamespaceKeyFunc

func SplitMetaResourceNamespaceKeyFunc(key string) (kind, namespace, name string, err error)

SplitMetaResourceNamespaceKeyFunc returns the kind, namespace and name that MetaResourceNamespaceKeyFunc encoded into key.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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