kubeutil

package
v0.0.0-...-b2d20b0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportKubeConfig

func ExportKubeConfig(c *api.Cluster, filename string, user string, overwrite bool) error

ExportKubeConfig exports the specified kubeconfig to a file on disk

func GetKubeConfig

func GetKubeConfig(c *api.Cluster, user string) (*clientcmdapi.Config, error)

GetKubeConfig returns the kubeconfig for a specific user

func KubeApply

func KubeApply(context string, name string, data []byte) error

KubeApply apply the file (in bytes) to the cluster

func KubeWaitForApiserver

func KubeWaitForApiserver(context string)

KubeWaitForApiserver blocks and retries until apiserver is available

func ValidateAndWriteToBuffer

func ValidateAndWriteToBuffer(config *clientcmdapi.Config) ([]byte, error)

ValidateAndWriteToBuffer converts kubeconfig object to bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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