kubernetesruntime

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindVersion     = "v0.10.0-outreach.3"
	KindDownloadURL = "https://github.com/getoutreach/kind/releases/download/" + KindVersion + "/kind-" + runtime.GOOS + "-" + runtime.GOARCH
	KindClusterName = "dev-environment"
)

Variables

This section is empty.

Functions

func EnsureKind

func EnsureKind(log logrus.FieldLogger) (string, error)

EnsureKind ensures that Kind exists and returns the location of kind. Note: this outputs text if kind is being downloaded

func GetKubeConfig

func GetKubeConfig(ctx context.Context, log logrus.FieldLogger) (*api.Config, error)

GetKubeConfig reads a kubeconfig from Kind and returns it This is based on the original shell hack, but a lot safer: "$kindPath" get kubeconfig --name "$(yq -r ".name" <"$LIBDIR/kind.yaml")"

| sed 's/kind-dev-environment/dev-environment/' >"$KUBECONFIG"

func InitKind

func InitKind(ctx context.Context, log logrus.FieldLogger) error

InitKind creates a Kubernetes cluster

func ResetKind

func ResetKind(ctx context.Context, log logrus.FieldLogger) error

ResetKind nukes an existing Kubernetes cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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