Documentation
¶
Index ¶
- func WithTrailingDot(s string) string
- type Cluster
- func (c *Cluster) AvailabilityZones() []string
- 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
- type Subnet
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,omitempty"`
ExternalDNSName string `yaml:"externalDNSName,omitempty"`
KeyName string `yaml:"keyName,omitempty"`
Region string `yaml:"region,omitempty"`
AvailabilityZone string `yaml:"availabilityZone,omitempty"`
ReleaseChannel string `yaml:"releaseChannel,omitempty"`
ControllerInstanceType string `yaml:"controllerInstanceType,omitempty"`
ControllerRootVolumeType string `yaml:"controllerRootVolumeType,omitempty"`
ControllerRootVolumeIOPS int `yaml:"controllerRootVolumeIOPS,omitempty"`
ControllerRootVolumeSize int `yaml:"controllerRootVolumeSize,omitempty"`
WorkerCount int `yaml:"workerCount,omitempty"`
WorkerInstanceType string `yaml:"workerInstanceType,omitempty"`
WorkerRootVolumeType string `yaml:"workerRootVolumeType,omitempty"`
WorkerRootVolumeIOPS int `yaml:"workerRootVolumeIOPS,omitempty"`
WorkerRootVolumeSize int `yaml:"workerRootVolumeSize,omitempty"`
WorkerSpotPrice string `yaml:"workerSpotPrice,omitempty"`
VPCID string `yaml:"vpcId,omitempty"`
RouteTableID string `yaml:"routeTableId,omitempty"`
VPCCIDR string `yaml:"vpcCIDR,omitempty"`
InstanceCIDR string `yaml:"instanceCIDR,omitempty"`
ControllerIP string `yaml:"controllerIP,omitempty"`
PodCIDR string `yaml:"podCIDR,omitempty"`
ServiceCIDR string `yaml:"serviceCIDR,omitempty"`
DNSServiceIP string `yaml:"dnsServiceIP,omitempty"`
K8sVer string `yaml:"kubernetesVersion,omitempty"`
HyperkubeImageRepo string `yaml:"hyperkubeImageRepo,omitempty"`
ContainerRuntime string `yaml:"containerRuntime,omitempty"`
KMSKeyARN string `yaml:"kmsKeyArn,omitempty"`
CreateRecordSet bool `yaml:"createRecordSet,omitempty"`
RecordSetTTL int `yaml:"recordSetTTL,omitempty"`
TLSCADurationDays int `yaml:"tlsCADurationDays,omitempty"`
TLSCertDurationDays int `yaml:"tlsCertDurationDays,omitempty"`
HostedZone string `yaml:"hostedZone,omitempty"`
HostedZoneID string `yaml:"hostedZoneId,omitempty"`
StackTags map[string]string `yaml:"stackTags,omitempty"`
UseCalico bool `yaml:"useCalico,omitempty"`
Subnets []Subnet `yaml:"subnets,omitempty"`
}
func ClusterFromBytes ¶ added in v0.6.0
ClusterFromBytes Necessary for unit tests, which store configs as hardcoded strings
func ClusterFromFile ¶
func (*Cluster) AvailabilityZones ¶ added in v0.8.1
Returns the availability zones referenced by the cluster configuration
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
type StackTemplateOptions ¶
Click to show internal directories.
Click to hide internal directories.