Documentation ¶
Index ¶
- Constants
- Variables
- func AllOperationTargetsAsStringSlice() []string
- 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 Info
- type NestedStack
- type OperationTargets
- 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 ( OperationTargetControlPlane = "control-plane" OperationTargetEtcd = "etcd" OperationTargetNetwork = "network" OperationTargetAll = "all" )
TODO: Add etcd
Variables ¶
View Source
var OperationTargetNames = []string{ OperationTargetControlPlane, OperationTargetEtcd, OperationTargetNetwork, }
Functions ¶
func AllOperationTargetsAsStringSlice ¶ added in v0.11.0
func AllOperationTargetsAsStringSlice() []string
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) }
func ClusterFromConfig ¶
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 NestedStack ¶
type OperationTargets ¶ added in v0.11.0
type OperationTargets []string
func AllOperationTargetsWith ¶ added in v0.11.0
func AllOperationTargetsWith(nodePoolNames []string) OperationTargets
func OperationTargetsFromStringSlice ¶ added in v0.11.0
func OperationTargetsFromStringSlice(targets []string) OperationTargets
func (OperationTargets) IncludeControlPlane ¶ added in v0.11.0
func (ts OperationTargets) IncludeControlPlane() bool
func (OperationTargets) IncludeEtcd ¶ added in v0.11.0
func (ts OperationTargets) IncludeEtcd() bool
func (OperationTargets) IncludeNetwork ¶ added in v0.11.0
func (ts OperationTargets) IncludeNetwork() 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.