k8s

package
v0.0.0-...-a71f483 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCantFindConfigFile = errors.New("can not find config file")

ErrCantFindConfigFile is returned when given config file can't be found.

Functions

This section is empty.

Types

type Params

type Params struct {
	KubeCfgPath string
	KubeContext string
	KubeCluster string
	KubeAsUser  string
	KubeAsUID   string
	KubeAsGroup []string
}

Params contain Kubernetes specific params, that CLI should comply to.

func (*Params) GetClientConfig

func (kp *Params) GetClientConfig() (clientcmd.ClientConfig, error)

GetClientConfig gets ClientConfig from Kube' configuration params.

func (*Params) SetFlags

func (kp *Params) SetFlags(flags *pflag.FlagSet)

SetFlags is used set flags to the given flagset.

Jump to

Keyboard shortcuts

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