kind

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name string
	// contains filtered or unexported fields
}

Cluster represents the running state of a KIND cluster. An empty struct is enough to call Setup() on.

func (*Cluster) ApplyYAML

func (c *Cluster) ApplyYAML(manifestPath string)

ApplyYAML applies the provided manifest to the kind cluster

func (*Cluster) KubeClient

func (c *Cluster) KubeClient() kubernetes.Interface

KubeClient returns a Kubernetes client pointing at the provisioned cluster

func (*Cluster) LoadImage

func (c *Cluster) LoadImage(image string)

LoadImage loads the specified image archive into the kind cluster

func (*Cluster) RestConfig

func (c *Cluster) RestConfig() *restclient.Config

RestConfig returns a rest configuration pointed at the provisioned cluster

func (*Cluster) Setup

func (c *Cluster) Setup()

Setup creates a kind cluster and returns a path to the kubeconfig nolint:gosec

func (*Cluster) Teardown

func (c *Cluster) Teardown()

Teardown attempts to delete the KIND cluster

Jump to

Keyboard shortcuts

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