cluster

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinikubeContext = "minikube"
)

Variables

View Source
var (
	NoClusterDefinedError = errors.Errorf("no cluster defined")
)

Functions

This section is empty.

Types

type ClusterResource

type ClusterResource interface {
	Ensure(ctx *api.WorkflowContext, values render.Values) error
	Teardown(ctx *api.WorkflowContext, values render.Values) error
	SetContext(ctx *api.WorkflowContext, values render.Values) error
}

type EKS

type EKS struct {
	Name   string `json:"name"   valet:"template,key=ClusterName"`
	Region string `json:"region" valet:"template,key=AwsRegion,default=us-east-2"`
}

func (*EKS) Ensure

func (e *EKS) Ensure(ctx *api.WorkflowContext, values render.Values) error

func (*EKS) SetContext

func (e *EKS) SetContext(ctx *api.WorkflowContext, values render.Values) error

func (*EKS) Teardown

func (e *EKS) Teardown(ctx *api.WorkflowContext, values render.Values) error

type EnsureCluster

type EnsureCluster clusterStep

func (*EnsureCluster) GetDescription

func (e *EnsureCluster) GetDescription(ctx *api.WorkflowContext, values render.Values) (string, error)

func (*EnsureCluster) GetDocs

func (e *EnsureCluster) GetDocs(ctx *api.WorkflowContext, values render.Values, flags render.Flags) (string, error)

func (*EnsureCluster) Run

func (e *EnsureCluster) Run(ctx *api.WorkflowContext, values render.Values) error

type GKE

type GKE struct {
	Name     string            `json:"name" valet:"template,key=ClusterName"`
	Location string            `json:"location" valet:"template,key=GcloudLocation"`
	Project  string            `json:"project" valet:"template,key=GcloudProject"`
	Options  gke.CreateOptions `json:"options"`
}

func (*GKE) Ensure

func (g *GKE) Ensure(ctx *api.WorkflowContext, values render.Values) error

func (*GKE) SetContext

func (g *GKE) SetContext(ctx *api.WorkflowContext, values render.Values) error

func (*GKE) Teardown

func (g *GKE) Teardown(ctx *api.WorkflowContext, values render.Values) error

type Minikube

type Minikube struct {
	Cpus         int      `json:"cpus" valet:"template,key=MinikubeCpus,default=4"`
	Memory       int      `json:"memory" valet:"template,key=MinikubeMemory,default=8192"`
	KubeVersion  string   `json:"version" valet:"template,key=KubeVersion,default=v1.13.0"`
	VmDriver     string   `json:"vmDriver" valet:"template,key=MinikubeVmDriver,default=virtualbox"`
	FeatureGates []string `json:"featureGates"`
}

func (*Minikube) Ensure

func (m *Minikube) Ensure(ctx *api.WorkflowContext, values render.Values) error

func (*Minikube) SetContext

func (m *Minikube) SetContext(ctx *api.WorkflowContext, values render.Values) error

func (*Minikube) Teardown

func (m *Minikube) Teardown(ctx *api.WorkflowContext, values render.Values) error

Jump to

Keyboard shortcuts

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