kubeClient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfigFromFlags

func BuildConfigFromFlags(context, kubeconfigPath string) (*rest.Config, error)

Types

type KubeConfig

type KubeConfig struct {
	Namespace string
	Context   string
}

func GetKubeClient

func GetKubeClient(namespace, context string) (*KubeConfig, error)

func (KubeConfig) CheckNamespaceExist

func (k KubeConfig) CheckNamespaceExist() error

func (KubeConfig) CreateNSIfNotExist

func (k KubeConfig) CreateNSIfNotExist() error

func (KubeConfig) CreateSecret

func (k KubeConfig) CreateSecret(secretSpec map[string][]byte, secretName string) error

func (KubeConfig) GetServiceInfo

func (k KubeConfig) GetServiceInfo(svcName string) []string

func (KubeConfig) GetServiceInfoByLabels

func (k KubeConfig) GetServiceInfoByLabels(labelsMap map[string]string) []string

func (KubeConfig) HasSecret

func (k KubeConfig) HasSecret(name string) bool

func (KubeConfig) InitClient

func (k KubeConfig) InitClient() error

Jump to

Keyboard shortcuts

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