util

package
v0.0.0-...-4c94642 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterIDFromKubernetes

func GetClusterIDFromKubernetes(kubeClientset kubernetes.Interface) (string, error)

GetClusterIDFromKubernetes gets the Containership cluster ID from the cluster-id label

func IsAuthError

func IsAuthError(err error) bool

IsAuthError returns true if the error is an authentication or authorization error, else false

func IsNodeReady

func IsNodeReady(node corev1.Node) bool

IsNodeReady 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 IsRetryableAPIError

func IsRetryableAPIError(err error) bool

This function is borrowed from kubernetes/kubernetes/test/utils It's hard to pull in that package, so not bothering to right now

Types

This section is empty.

Jump to

Keyboard shortcuts

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