kubeletconfig

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKubectlPath = "/bin/kubectl"
)

Variables

This section is empty.

Functions

func GetKubeletConfigForNodes

func GetKubeletConfigForNodes(kc *Kubectl, nodeNames []string, logger *log.Logger) (map[string]*kubeletconfigv1beta1.KubeletConfiguration, error)

func StartWithStreamOutput

func StartWithStreamOutput(cmd *exec.Cmd) (stdout, stderr io.ReadCloser, err error)

Types

type Kubectl

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

func NewKubectl

func NewKubectl(logger *log.Logger, kubectlPath, kubeConfig string) *Kubectl

func NewKubectlFromEnv

func NewKubectlFromEnv(logger *log.Logger) *Kubectl

func (*Kubectl) Arguments added in v0.0.9

func (kc *Kubectl) Arguments(args ...string) []string

func (*Kubectl) Command

func (kc *Kubectl) Command(args ...string) *exec.Cmd

func (*Kubectl) IsReady

func (kc *Kubectl) IsReady() (bool, error)

func (*Kubectl) WithAPIServer

func (kc *Kubectl) WithAPIServer(apiserver string) *Kubectl

func (*Kubectl) WithNamespace

func (kc *Kubectl) WithNamespace(namespace string) *Kubectl

Jump to

Keyboard shortcuts

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