kube

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KubeconfigDir is the default kubeconfig directory.
	KubeconfigDir = ".kube"
	// KubeconfigFile is the default kubeconfig file.
	KubeconfigFile = "config"
	// UpboundKubeconfigKeyFmt is the format for Upbound control plane entries
	// in a kubeconfig file.
	UpboundKubeconfigKeyFmt = "upbound-%s"
)

Variables

This section is empty.

Functions

func BuildControlPlaneKubeconfig added in v0.4.0

func BuildControlPlaneKubeconfig(proxy *url.URL, id uuid.UUID, token, kube string) error

BuildControlPlaneKubeconfig builds a kubeconfig entry for a control plane.

func GetKubeConfig

func GetKubeConfig(path string) (*rest.Config, error)

GetKubeConfig constructs a Kubernetes REST config from the specified kubeconfig, or falls back to same defaults as kubectl.

Types

This section is empty.

Jump to

Keyboard shortcuts

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