Documentation
¶
Index ¶
- func WithTrailingDot(s string) string
- type Cluster
- func (c Cluster) Config() (*Config, error)
- func (c *Cluster) NewTLSAssets() (*RawTLSAssets, error)
- func (c Cluster) RenderStackTemplate(opts StackTemplateOptions) ([]byte, error)
- func (c *Cluster) ValidateExistingVPC(existingVPCCIDR string, existingSubnetCIDRS []string) error
- func (c Cluster) ValidateUserData(opts StackTemplateOptions) error
- type CompactTLSAssets
- type Config
- type RawTLSAssets
- type StackTemplateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithTrailingDot ¶ added in v0.6.1
Types ¶
type Cluster ¶
type Cluster struct {
ClusterName string `yaml:"clusterName"`
ExternalDNSName string `yaml:"externalDNSName"`
KeyName string `yaml:"keyName"`
Region string `yaml:"region"`
AvailabilityZone string `yaml:"availabilityZone"`
ReleaseChannel string `yaml:"releaseChannel"`
ControllerInstanceType string `yaml:"controllerInstanceType"`
ControllerRootVolumeSize int `yaml:"controllerRootVolumeSize"`
WorkerCount int `yaml:"workerCount"`
WorkerInstanceType string `yaml:"workerInstanceType"`
WorkerRootVolumeSize int `yaml:"workerRootVolumeSize"`
WorkerSpotPrice string `yaml:"workerSpotPrice"`
VPCID string `yaml:"vpcId"`
RouteTableID string `yaml:"routeTableId"`
VPCCIDR string `yaml:"vpcCIDR"`
InstanceCIDR string `yaml:"instanceCIDR"`
ControllerIP string `yaml:"controllerIP"`
PodCIDR string `yaml:"podCIDR"`
ServiceCIDR string `yaml:"serviceCIDR"`
DNSServiceIP string `yaml:"dnsServiceIP"`
K8sVer string `yaml:"kubernetesVersion"`
HyperkubeImageRepo string `yaml:"hyperkubeImageRepo"`
KMSKeyARN string `yaml:"kmsKeyArn"`
CreateRecordSet bool `yaml:"createRecordSet"`
RecordSetTTL int `yaml:"recordSetTTL"`
HostedZone string `yaml:"hostedZone"`
StackTags map[string]string `yaml:"stackTags"`
UseCalico bool `yaml:"useCalico"`
}
func ClusterFromBytes ¶ added in v0.6.0
ClusterFromBytes Necessary for unit tests, which store configs as hardcoded strings
func ClusterFromFile ¶
func (*Cluster) NewTLSAssets ¶
func (c *Cluster) NewTLSAssets() (*RawTLSAssets, error)
func (Cluster) RenderStackTemplate ¶
func (c Cluster) RenderStackTemplate(opts StackTemplateOptions) ([]byte, error)
func (*Cluster) ValidateExistingVPC ¶ added in v0.6.0
Validates the an existing VPC and it's existing subnets do not conflict with this cluster configuration
func (Cluster) ValidateUserData ¶
func (c Cluster) ValidateUserData(opts StackTemplateOptions) error
type CompactTLSAssets ¶
type CompactTLSAssets struct {
CACert string
CAKey string
APIServerCert string
APIServerKey string
WorkerCert string
WorkerKey string
AdminCert string
AdminKey string
}
PEM -> gzip -> base64 encoded TLS assets.
type Config ¶
type Config struct {
Cluster
ETCDEndpoints string
APIServers string
SecureAPIServers string
APIServerEndpoint string
AMI string
// Encoded TLS assets
TLSConfig *CompactTLSAssets
//Logical names of dynamic resources
VPCLogicalName string
//Reference strings for dynamic resources
VPCRef string
K8sNetworkPlugin string
}
type RawTLSAssets ¶
type RawTLSAssets struct {
CACert []byte
CAKey []byte
APIServerCert []byte
APIServerKey []byte
WorkerCert []byte
WorkerKey []byte
AdminCert []byte
AdminKey []byte
}
PEM encoded TLS assets.
func ReadTLSAssets ¶
func ReadTLSAssets(dirname string) (*RawTLSAssets, error)
func (*RawTLSAssets) WriteToDir ¶
func (r *RawTLSAssets) WriteToDir(dirname string) error
Click to show internal directories.
Click to hide internal directories.