kube

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNamespaceExists

func EnsureNamespaceExists(namespace *v1.Namespace, client corev1.NamespaceInterface) (bool, error)

EnsureNamespaceExists attempts to create the provided Kubernetes namespace. It returns two values: a bool indicating whether or not the namespace was created, and an error if the create failed for a reason other than that the namespace already exists. Note that in the case where the namespace already exists, this function will return (false, nil).

func NamespaceAndName added in v0.4.0

func NamespaceAndName(objMeta metav1.Object) string

NamespaceAndName returns a string in the format <namespace>/<name>

func ServerVersion added in v0.7.0

func ServerVersion(client discovery.DiscoveryInterface) (*version.Version, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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