k8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParameterCodec = func() runtime.ParameterCodec {
	var scheme = runtime.NewScheme()
	util.Must(corev1.AddToScheme(scheme))
	return runtime.NewParameterCodec(scheme)
}()

ParameterCodec is a default parameter codec for Kubernetes API

Functions

func DefaultKubeconfigPath

func DefaultKubeconfigPath() string

DefaultKubeconfigPath returns default kubeconfig path ($HOME/.kube/config)

func NewClientset

func NewClientset(config *rest.Config) (*kubernetes.Clientset, error)

NewClientset returns a new kubernetes.Clientset from the reset.Config

func NewRestConfig

func NewRestConfig(kubeconfig string) (*rest.Config, error)

NewRestConfig returns new rest.Config from kubeconfig path

Types

This section is empty.

Jump to

Keyboard shortcuts

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