Documentation ¶
Index ¶
- Constants
- func AllOperationTargetsAsStringSlice() []string
- func ClusterFromConfig(cfg *config.Config, opts options, awsDebug bool) (*clusterImpl, error)
- func ClusterFromFile(configPath string, opts options, awsDebug bool) (*clusterImpl, error)
- func LoadCertificates() (map[string]tlscerts.Certificates, error)
- func NewOptions(prettyPrint bool, skipWait bool) options
- func RenderCredentials(configPath string, renderCredentialsOpts config.CredentialsOptions) error
- func RenderStack(configPath string) error
- type Cluster
- type ClusterDescriber
- type ClusterDestroyer
- type DestroyOptions
- type DiffResult
- type Info
- type NestedStack
- type OperationTargets
- func (ts OperationTargets) IncludeAll(c *clusterImpl) 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 TemplateParams
- func (p TemplateParams) CloudWatchLogging() config.CloudWatchLogging
- func (p TemplateParams) ClusterName() string
- func (c TemplateParams) ControlPlane() controlPlane
- func (c TemplateParams) Etcd() etcdStack
- func (p TemplateParams) ExtraCfnResources() map[string]interface{}
- func (p TemplateParams) KubeAwsVersion() string
- func (p TemplateParams) KubeDnsMasq() config.KubeDns
- func (c TemplateParams) Network() networkStack
- func (c TemplateParams) NodePools() []nodePool
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 ClusterFromFile ¶
func LoadCertificates ¶ added in v0.11.0
func LoadCertificates() (map[string]tlscerts.Certificates, error)
func NewOptions ¶
func RenderCredentials ¶ added in v0.11.0
func RenderCredentials(configPath string, renderCredentialsOpts config.CredentialsOptions) error
func RenderStack ¶ added in v0.11.0
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 ¶
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(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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.