client

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 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 a given key path into options and returns it.

Jump to

Keyboard shortcuts

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