kubectl

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BinPath is the path to the kubectl binary.
	BinPath = "/usr/local/bin/kubectl"
)

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, opts InstallOptions) error

Install installs kubectl at BinPath.

func Uninstall

func Uninstall() error

func Upgrade added in v1.0.4

func Upgrade(ctx context.Context, src Source, log *zap.Logger) error

Types

type InstallOptions added in v1.0.4

type InstallOptions struct {
	InstallRoot string
	Tracker     *tracker.Tracker
	Source      Source
	Logger      *zap.Logger
}

InstallOptions contains options for installing kubectl

type Source

type Source interface {
	GetKubectl(context.Context) (artifact.Source, error)
}

Source represents a source that serves a kubectl binary.

Jump to

Keyboard shortcuts

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