kubeletconfig

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func FindProxyPort added in v0.14.0

func FindProxyPort(r io.Reader) (int, error)

func GetKubeletConfigForNodes

func GetKubeletConfigForNodes(kc *Kubectl, nodeNames []string, logger logr.Logger) (k8sconf map[string]*kubeletconfigv1beta1.KubeletConfiguration, err 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 logr.Logger, kubectlPath, kubeConfig string) *Kubectl

func NewKubectlFromEnv

func NewKubectlFromEnv(logger logr.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