Documentation ¶
Index ¶
- Constants
- func AllOperationTargetsAsStringSlice() []string
- func LoadCertificates() (map[string]pki.Certificates, error)
- func NewOptions(prettyPrint bool, skipWait bool) options
- func RenderCredentials(configPath string, renderCredentialsOpts credential.GeneratorOptions) error
- func RenderStack(configPath string) error
- type Cluster
- func (cl *Cluster) Apply(targets OperationTargets) error
- func (cl *Cluster) ControlPlane() *model.Stack
- func (cl *Cluster) Diff(opts OperationTargets, context int) ([]*DiffResult, error)
- func (cl *Cluster) EnsureAllAssetsGenerated() (cfnstack.Assets, error)
- func (cl Cluster) EstimateCost() ([]string, error)
- func (cl *Cluster) Etcd() *model.Stack
- func (cl Cluster) Export() error
- func (cl *Cluster) GenerateAssetsOnDisk(dir string, opts credential.GeneratorOptions) (*credential.RawAssetsOnDisk, error)
- func (cl *Cluster) Info() (*Info, error)
- func (cl *Cluster) LegacyCreate() error
- func (cl *Cluster) LegacyUpdate(targets OperationTargets) (string, error)
- func (cl *Cluster) Network() *model.Stack
- func (cl *Cluster) NodePools() []*model.Stack
- func (cl *Cluster) RenderStackTemplateAsString() (string, error)
- func (cl *Cluster) ValidateStack(opts ...OperationTargets) (string, error)
- func (cl *Cluster) ValidateTemplates() error
- type ClusterDescriber
- type ClusterDestroyer
- type DestroyOptions
- type DiffResult
- type Info
- type NestedStack
- type OperationTargets
- func (ts OperationTargets) IncludeAll(cl *Cluster) bool
- func (ts OperationTargets) IncludeControlPlane(controlPlaneStackName string) bool
- func (ts OperationTargets) IncludeEtcd(etcdStackName string) bool
- func (ts OperationTargets) IncludeNetwork(networkStackName string) bool
- func (ts OperationTargets) IncludeWorker(nodePoolName string) bool
- func (ts OperationTargets) IsAll() bool
- func (ts OperationTargets) String() string
- type StackResourceDescriber
- type TemplateParams
- func (p TemplateParams) CloudWatchLogging() api.CloudWatchLogging
- func (p TemplateParams) ClusterName() string
- func (p TemplateParams) ControlPlane() controlPlane
- func (p TemplateParams) Etcd() etcdStack
- func (p TemplateParams) ExtraCfnOutputs() map[string]interface{}
- func (p TemplateParams) ExtraCfnResources() map[string]interface{}
- func (p TemplateParams) ExtraCfnTags() map[string]interface{}
- func (p TemplateParams) KubeAwsVersion() string
- func (p TemplateParams) KubeDnsMasq() api.KubeDns
- func (p TemplateParams) Network() networkStack
- func (p TemplateParams) NodePoolAvailabilityZoneDependencies(pool nodePool, subnets api.Subnets) (string, error)
- func (p TemplateParams) NodePools() []nodePool
- func (p TemplateParams) Subnets() api.Subnets
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 RenderCredentials ¶ added in v0.11.0
func RenderCredentials(configPath string, renderCredentialsOpts credential.GeneratorOptions) error
func RenderStack ¶ added in v0.11.0
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 CompileClusterFromFile ¶ added in v0.13.0
func LoadClusterFromFile ¶ added in v0.13.0
func (*Cluster) Apply ¶ added in v0.11.0
func (cl *Cluster) Apply(targets OperationTargets) error
func (*Cluster) ControlPlane ¶ added in v0.9.6
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 (Cluster) EstimateCost ¶
func (*Cluster) GenerateAssetsOnDisk ¶ added in v0.13.0
func (cl *Cluster) GenerateAssetsOnDisk(dir string, opts credential.GeneratorOptions) (*credential.RawAssetsOnDisk, error)
func (*Cluster) LegacyCreate ¶ added in v0.11.0
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) RenderStackTemplateAsString ¶ added in v0.9.8
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 ¶
type ClusterDescriber ¶
func ClusterDescriberFromFile ¶
func ClusterDescriberFromFile(configPath string) (ClusterDescriber, error)
func NewClusterDescriber ¶
type ClusterDestroyer ¶
type ClusterDestroyer interface {
Destroy() error
}
func ClusterDestroyerFromFile ¶
func ClusterDestroyerFromFile(configPath string, opts DestroyOptions) (ClusterDestroyer, error)
type DestroyOptions ¶
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 NestedStack ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.