root

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCAL_ROOT_STACK_TEMPLATE_PATH = defaults.RootStackTemplateTmplFile
	REMOTE_STACK_TEMPLATE_FILENAME = "stack.json"
)
View Source
const (
	OperationTargetAll = "all"
)

TODO: Add etcd

Variables

This section is empty.

Functions

func AllOperationTargetsAsStringSlice added in v0.11.0

func AllOperationTargetsAsStringSlice() []string

func ClusterFromConfig

func ClusterFromConfig(cfg *config.Config, opts options, awsDebug bool) (*clusterImpl, error)

func ClusterFromFile

func ClusterFromFile(configPath string, opts options, awsDebug bool) (*clusterImpl, error)

func LoadCertificates added in v0.11.0

func LoadCertificates() (map[string]tlscerts.Certificates, error)

func NewOptions

func NewOptions(prettyPrint bool, skipWait bool) options

func RenderCredentials added in v0.11.0

func RenderCredentials(configPath string, renderCredentialsOpts config.CredentialsOptions) error

func RenderStack added in v0.11.0

func RenderStack(configPath string) error

Types

type Cluster

type Cluster interface {
	Apply(OperationTargets) error
	Assets() (cfnstack.Assets, error)
	LegacyCreate() error
	Export() error
	EstimateCost() ([]string, error)
	Info() (*Info, error)
	LegacyUpdate(OperationTargets) (string, error)
	ValidateStack(...OperationTargets) (string, error)
	ValidateTemplates() error
	ControlPlane() *controlplane.Cluster
	Etcd() *etcd.Cluster
	Network() *network.Cluster
	NodePools() []*nodepool.Cluster
	RenderStackTemplateAsString() (string, error)
	Diff(OperationTargets, int) ([]*DiffResult, error)
}

type ClusterDescriber

type ClusterDescriber interface {
	Info() (*Info, error)
}

func ClusterDescriberFromFile

func ClusterDescriberFromFile(configPath string) (ClusterDescriber, error)

func NewClusterDescriber

func NewClusterDescriber(clusterName string, stackName string, cpConfig *cp.Config, session *session.Session) ClusterDescriber

type ClusterDestroyer

type ClusterDestroyer interface {
	Destroy() error
}

func ClusterDestroyerFromFile

func ClusterDestroyerFromFile(configPath string, opts DestroyOptions) (ClusterDestroyer, error)

type DestroyOptions

type DestroyOptions struct {
	AwsDebug bool
	Force    bool
}

type DiffResult added in v0.12.0

type DiffResult struct {
	Target string
	// contains filtered or unexported fields
}

func (*DiffResult) String added in v0.12.0

func (r *DiffResult) String() string

type Info

type Info struct {
	ControlPlane *cluster.Info
}

func (*Info) String

func (i *Info) String() string

type NestedStack

type NestedStack interface {
	Name() string
	Tags() map[string]string
	TemplateURL() (string, error)
	NeedToExportIAMroles() bool
}

type OperationTargets added in v0.11.0

type OperationTargets []string

func AllOperationTargetsWith added in v0.11.0

func AllOperationTargetsWith(nodePoolNames []string, operationTargetNames []string) OperationTargets

func OperationTargetsFromStringSlice added in v0.11.0

func OperationTargetsFromStringSlice(targets []string) OperationTargets

func (OperationTargets) IncludeAll added in v0.12.1

func (ts OperationTargets) IncludeAll(c *clusterImpl) bool

func (OperationTargets) IncludeControlPlane added in v0.11.0

func (ts OperationTargets) IncludeControlPlane(controlPlaneStackName string) bool

func (OperationTargets) IncludeEtcd added in v0.11.0

func (ts OperationTargets) IncludeEtcd(etcdStackName string) bool

func (OperationTargets) IncludeNetwork added in v0.11.0

func (ts OperationTargets) IncludeNetwork(networkStackName string) bool

func (OperationTargets) IncludeWorker added in v0.11.0

func (ts OperationTargets) IncludeWorker(nodePoolName string) bool

func (OperationTargets) IsAll added in v0.11.0

func (ts OperationTargets) IsAll() bool

func (OperationTargets) String added in v0.11.0

func (ts OperationTargets) String() string

type TemplateParams

type TemplateParams struct {
	// contains filtered or unexported fields
}

TemplateParams is the set of parameters exposed for templating cfn stack template for the root stack

func (TemplateParams) CloudWatchLogging added in v0.9.7

func (p TemplateParams) CloudWatchLogging() config.CloudWatchLogging

func (TemplateParams) ClusterName

func (p TemplateParams) ClusterName() string

func (TemplateParams) ControlPlane

func (c TemplateParams) ControlPlane() controlPlane

func (TemplateParams) Etcd added in v0.11.0

func (c TemplateParams) Etcd() etcdStack

func (TemplateParams) ExtraCfnResources added in v0.9.8

func (p TemplateParams) ExtraCfnResources() map[string]interface{}

func (TemplateParams) KubeAwsVersion added in v0.9.8

func (p TemplateParams) KubeAwsVersion() string

func (TemplateParams) KubeDnsMasq added in v0.9.8

func (p TemplateParams) KubeDnsMasq() config.KubeDns

func (TemplateParams) Network added in v0.11.0

func (c TemplateParams) Network() networkStack

func (TemplateParams) NodePools

func (c TemplateParams) NodePools() []nodePool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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