kubectl

package
v0.0.344 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pins = map[string]artifacts.Reference{
	"linux/amd64": {
		URL: fmt.Sprintf("https://cdn.dl.k8s.io/release/v%s/bin/linux/amd64/kubectl", version),
		Digest: schema.Digest{
			Algorithm: "sha256",
			Hex:       "98ea4a13895e54ba24f57e0d369ff6be0d3906895305d5390197069b1da12ae2",
		},
	},
	"linux/arm64": {
		URL: fmt.Sprintf("https://cdn.dl.k8s.io/release/v%s/bin/linux/arm64/kubectl", version),
		Digest: schema.Digest{
			Algorithm: "sha256",
			Hex:       "f945c63220b393ddf8df67d87e67ff74b7f56219a670dee38bc597a078588e90",
		},
	},
	"darwin/arm64": {
		URL: fmt.Sprintf("https://cdn.dl.k8s.io/release/v%s/bin/darwin/arm64/kubectl", version),
		Digest: schema.Digest{
			Algorithm: "sha256",
			Hex:       "717e6e4cc9815c3dc4fd115d85d63a47f50bca3cd96815d1b22da9a6ff8fa90c",
		},
	},
	"darwin/amd64": {
		URL: fmt.Sprintf("https://cdn.dl.k8s.io/release/v%s/bin/darwin/amd64/kubectl", version),
		Digest: schema.Digest{
			Algorithm: "sha256",
			Hex:       "0644a191aac832bfef27e74f315af4ec8c2487df44ee537a1243bc58b583fd73",
		},
	},
}

Functions

Types

type Kubeconfig added in v0.0.164

type Kubeconfig struct {
	Kubeconfig string
	Context    string
	Namespace  string
	// contains filtered or unexported fields
}

func WriteKubeconfig added in v0.0.197

func WriteKubeconfig(ctx context.Context, configBytes []byte, keepConfig bool) (*Kubeconfig, error)

func WriteRawKubeconfig added in v0.0.164

func WriteRawKubeconfig(ctx context.Context, rawConfig clientcmdapi.Config, keepConfig bool) (*Kubeconfig, error)

func (*Kubeconfig) BaseArgs added in v0.0.164

func (kc *Kubeconfig) BaseArgs() []string

func (*Kubeconfig) Cleanup added in v0.0.164

func (kc *Kubeconfig) Cleanup() error

type Kubectl

type Kubectl string

func EnsureSDK

func EnsureSDK(ctx context.Context, p specs.Platform) (Kubectl, error)

Jump to

Keyboard shortcuts

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