kube

package
v0.16.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLeaseNotFound             = errors.New("kube: lease not found")
	ErrNoDeploymentForLease      = errors.New("kube: no deployments for lease")
	ErrNoManifestForLease        = errors.New("kube: no manifest for lease")
	ErrInternalError             = errors.New("kube: internal error")
	ErrNoServiceForLease         = errors.New("no service for that lease")
	ErrInvalidHostnameConnection = errors.New("kube: invalid hostname connection")
	ErrMissingLabel              = errors.New("kube: missing label")
	ErrInvalidLabelValue         = errors.New("kube: invalid label value")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	cluster.Client
}

Client interface includes cluster client

func NewClient

func NewClient(log log.Logger, ns string, configPath string) (Client, error)

NewClient returns new Kubernetes Client instance with provided logger, host and ns. Returns error incase of failure configPath may be the empty string

func NewPreparedClient added in v0.14.0

func NewPreparedClient(log log.Logger, ns string, configPath string) (Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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