client

package
v1.1.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewClientset

func NewClientset(ctx context.Context) *kubernetes.Clientset

NewClientset returns a new kubernetes client set with default options.

func NewClientsetWithConfigPath

func NewClientsetWithConfigPath(ctx context.Context, path string) (*kubernetes.Clientset, error)

NewClientsetWithConfigPath returns a new kubernetes client set with options from config path.

func NewClientsetWithOptions

func NewClientsetWithOptions(ctx context.Context, options *Options) *kubernetes.Clientset

NewClientsetWithOptions returns a new kubernetes client set with options.

Types

type Options

type Options struct {
	Type              string
	KubeConfigPath    string
	KubeConfigContext string
}

Options kubernetes client set options.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

NewOptionsWithPath unmarshals options based a given key path.

Jump to

Keyboard shortcuts

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