k8s

package
v0.0.0-...-a849b39 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyManifest

func ApplyManifest(_config *config.InternalConfig, name, manifest string, commandRetries int) error

Types

type K8S

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

func NewK8S

func NewK8S(config *config.InternalConfig) *K8S

func (*K8S) Apply

func (k8s *K8S) Apply(manifest string) error

func (*K8S) Cordon

func (k8s *K8S) Cordon(name string) error

func (*K8S) DeleteJob

func (k8s *K8S) DeleteJob(namespace, jobName string) error

func (*K8S) Drain

func (k8s *K8S) Drain(nodeName string) error

func (*K8S) Exec

func (k8s *K8S) Exec(namespace, pod, container, command string) (string, error)

func (*K8S) GetCredentials

func (k8s *K8S) GetCredentials(namespace, name string) (username string, password string, error error)

func (*K8S) GetSecretToken

func (k8s *K8S) GetSecretToken(namespace, name string) (string, error)

func (*K8S) TaintNode

func (k8s *K8S) TaintNode(name string, nodeData *config.Node) error

func (*K8S) Uncordon

func (k8s *K8S) Uncordon(name string) error

func (*K8S) WaitForCluster

func (k8s *K8S) WaitForCluster(totalStableIterations uint) error

Jump to

Keyboard shortcuts

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