Back to godoc.org

Package kind

v0.3.6
Latest Go to latest

The latest major version is .

Published: May 15, 2020 | License: Apache-2.0 | Module: sigs.k8s.io/cluster-api

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier