kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientForContext

func NewClientForContext(configPath string, contextName string) clientcmd.ClientConfig

NewClientForContext creates a client for a given kubernetes context.

func NewClientSet

func NewClientSet(clientConfig clientcmd.ClientConfig) (*kubernetes.Clientset, error)

NewClientSet tries to return the clientset for a given client config, it returns an error if the context is not present or if it fails to create client set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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