kube

package
v0.6.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 12 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

type SecretApplicator added in v0.5.0

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

SecretApplicator creates or updates Secrets. In the event that the Secret exists and must be updated, it is completely replaced, not patched.

func NewSecretApplicator added in v0.5.0

func NewSecretApplicator(client kubernetes.Interface) *SecretApplicator

NewSecretApplicator constructs a SecretApplicator with the passed Kubernetes client.

func (*SecretApplicator) Apply added in v0.5.0

func (s *SecretApplicator) Apply(ctx context.Context, ns string, secret *corev1.Secret) error

Apply creates or updates a Secret.

Jump to

Keyboard shortcuts

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