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

                Source Files