Help us shape the future of Go! Take the 2026 Go Developer Survey

kubernetes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig

func GetClientConfig() (*rest.Config, error)

GetClientConfig fetchs the kubernetes config of current cluster

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

Cluster holds the config information for Kubernetes cluster

func NewCluster

func NewCluster(logger *log.Logger) (*Cluster, error)

NewCluster returns new cluster struct initialized with KUBECONFIG from environment

func (*Cluster) DeleteResource

func (c *Cluster) DeleteResource(ctx context.Context, name, namespace, kind string) error

DeleteResource deletes kuberneres resource from current cluster, identified by name, namespace and kind

Jump to

Keyboard shortcuts

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