platform

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendVersionTag added in v0.2.0

func AppendVersionTag(tags *map[string]string)

AppendVersionTag appends the lokoctl-version tag to a given tags map.

func CommonControlPlaneCharts added in v0.4.0

func CommonControlPlaneCharts() []helm.LokomotiveChart

CommonControlPlaneCharts returns a list of control plane Helm charts to be deployed for all platforms.

func ControlPlaneChart added in v0.4.0

func ControlPlaneChart(name string) (*chart.Chart, error)

ControlPlaneChart is a convenience function which returns a pointer to a chart.Chart representing the control plane element named name.

func Register

func Register(name string, p Platform)

Register adds platform into internal map

Types

type Meta added in v0.2.0

type Meta struct {
	AssetDir      string
	ExpectedNodes int
	Managed       bool
}

Meta is a generic information format about the platform.

type Platform

type Platform interface {
	LoadConfig(*hcl.Body, *hcl.EvalContext) hcl.Diagnostics
	Apply(*terraform.Executor) error
	Destroy(*terraform.Executor) error
	Initialize(*terraform.Executor) error
	Meta() Meta
}

Platform describes single environment, where cluster can be installed

func GetPlatform

func GetPlatform(name string) (Platform, error)

GetPlatform returns platform based on the name

type PlatformWithPostApplyHook added in v0.4.0

type PlatformWithPostApplyHook interface {
	PostApplyHook(kubeconfig []byte) error
}

PlatformWithPostApplyHook runs code after Terraform finishes applying. This allows running sanity checks on the newly created cluster. Implementing this interface is optional for platforms.

Directories

Path Synopsis
Package aks is a Platform implementation for creating a Kubernetes cluster using Azure AKS.
Package aks is a Platform implementation for creating a Kubernetes cluster using Azure AKS.

Jump to

Keyboard shortcuts

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