root

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: Apache-2.0 Imports: 33 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"
)

Variables

This section is empty.

Functions

func AllOperationTargetsAsStringSlice added in v0.11.0

func AllOperationTargetsAsStringSlice() []string

func LoadCertificates added in v0.11.0

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

func NewOptions

func NewOptions(prettyPrint bool, skipWait bool) options

func RenderCredentials added in v0.11.0

func RenderCredentials(configPath string, renderCredentialsOpts credential.GeneratorOptions) error

func RenderStack added in v0.11.0

func RenderStack(configPath string) error

Types

type Cluster

type Cluster struct {
	ExtraCfnResources map[string]interface{}
	ExtraCfnTags      map[string]interface{}
	ExtraCfnOutputs   map[string]interface{}

	Context *model.Context

	Cfg *config.Config
	// contains filtered or unexported fields
}

func CompileClusterFromConfig added in v0.13.0

func CompileClusterFromConfig(cfg *config.Config, opts options, awsDebug bool) (*Cluster, error)

func CompileClusterFromFile added in v0.13.0

func CompileClusterFromFile(configPath string, opts options, awsDebug bool) (*Cluster, error)

func LoadClusterFromFile added in v0.13.0

func LoadClusterFromFile(configPath string, opts options, awsDebug bool) (*Cluster, error)

func (*Cluster) Apply added in v0.11.0

func (cl *Cluster) Apply(targets OperationTargets) error

func (*Cluster) ControlPlane added in v0.9.6

func (cl *Cluster) ControlPlane() *model.Stack

func (*Cluster) Diff added in v0.12.0

func (cl *Cluster) Diff(opts OperationTargets, context int) ([]*DiffResult, error)

func (*Cluster) EnsureAllAssetsGenerated added in v0.13.0

func (cl *Cluster) EnsureAllAssetsGenerated() (cfnstack.Assets, error)

func (Cluster) EstimateCost

func (cl Cluster) EstimateCost() ([]string, error)

func (*Cluster) Etcd added in v0.11.0

func (cl *Cluster) Etcd() *model.Stack

func (Cluster) Export

func (cl Cluster) Export() error

func (*Cluster) GenerateAssetsOnDisk added in v0.13.0

func (cl *Cluster) GenerateAssetsOnDisk(dir string, opts credential.GeneratorOptions) (*credential.RawAssetsOnDisk, error)

func (*Cluster) Info

func (cl *Cluster) Info() (*Info, error)

func (*Cluster) LegacyCreate added in v0.11.0

func (cl *Cluster) LegacyCreate() error

remove with legacy up command

func (*Cluster) LegacyUpdate added in v0.11.0

func (cl *Cluster) LegacyUpdate(targets OperationTargets) (string, error)

remove with legacy up command

func (*Cluster) Network added in v0.11.0

func (cl *Cluster) Network() *model.Stack

func (*Cluster) NodePools added in v0.9.8

func (cl *Cluster) NodePools() []*model.Stack

func (*Cluster) RenderStackTemplateAsString added in v0.9.8

func (cl *Cluster) RenderStackTemplateAsString() (string, error)

func (*Cluster) ValidateStack

func (cl *Cluster) ValidateStack(opts ...OperationTargets) (string, error)

ValidateStack validates all the CloudFormation stack templates already uploaded to S3

func (*Cluster) ValidateTemplates

func (cl *Cluster) ValidateTemplates() 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 *model.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 *model.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(cl *Cluster) 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 StackResourceDescriber added in v0.13.0

type StackResourceDescriber interface {
	DescribeStackResource(input *cloudformation.DescribeStackResourceInput) (*cloudformation.DescribeStackResourceOutput, error)
}

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() api.CloudWatchLogging

func (TemplateParams) ClusterName

func (p TemplateParams) ClusterName() string

func (TemplateParams) ControlPlane

func (p TemplateParams) ControlPlane() controlPlane

func (TemplateParams) Etcd added in v0.11.0

func (p TemplateParams) Etcd() etcdStack

func (TemplateParams) ExtraCfnOutputs added in v0.13.0

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

func (TemplateParams) ExtraCfnResources added in v0.9.8

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

func (TemplateParams) ExtraCfnTags added in v0.13.0

func (p TemplateParams) ExtraCfnTags() 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() api.KubeDns

func (TemplateParams) Network added in v0.11.0

func (p TemplateParams) Network() networkStack

func (TemplateParams) NodePoolAvailabilityZoneDependencies added in v0.13.0

func (p TemplateParams) NodePoolAvailabilityZoneDependencies(pool nodePool, subnets api.Subnets) (string, error)

func (TemplateParams) NodePools

func (p TemplateParams) NodePools() []nodePool

func (TemplateParams) Subnets added in v0.13.0

func (p TemplateParams) Subnets() api.Subnets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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