Documentation ¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- Constants
- func Init(init interfaces.Initialize) (cluster *clusterv1alpha1.Cluster, err error)
- type Cluster
- func (c *Cluster) APITunnel() interfaces.Tunnel
- func (c *Cluster) AmazonEBSEncrypted() bool
- func (c *Cluster) ClusterName() string
- func (c *Cluster) Config() *clusterv1alpha1.Cluster
- func (c *Cluster) ConfigPath() string
- func (c *Cluster) Environment() interfaces.Environment
- func (c *Cluster) GetState() string
- func (c *Cluster) ImageIDs() (map[string]string, error)
- func (c *Cluster) Images() []string
- func (c *Cluster) InstancePool(roleName string) interfaces.InstancePool
- func (c *Cluster) InstancePools() []interfaces.InstancePool
- func (c *Cluster) InstancePoolsMap() (instancePoolsMap map[string][]*clusterv1alpha1.InstancePool)
- func (c *Cluster) ListHosts() ([]interfaces.Host, error)
- func (c *Cluster) Log() *logrus.Entry
- func (c *Cluster) Name() string
- func (c *Cluster) NetworkCIDR() *net.IPNet
- func (c *Cluster) Parameters() map[string]string
- func (c *Cluster) PrivateAPIHostname() string
- func (c *Cluster) PublicAPIHostname() string
- func (c *Cluster) ReapplyConfiguration() error
- func (c *Cluster) Region() string
- func (c *Cluster) RemoteState() string
- func (c *Cluster) Role(roleName string) *role.Role
- func (c *Cluster) Roles() (roles []*role.Role)
- func (c *Cluster) SSHConfigPath() string
- func (c *Cluster) SSHHostKeysPath() string
- func (c *Cluster) SetState(state string)
- func (c *Cluster) Subnets() (subnets []clusterv1alpha1.Subnet)
- func (c *Cluster) TerraformOutput() (map[string]interface{}, error)
- func (c *Cluster) Type() string
- func (c *Cluster) UploadConfiguration() error
- func (c *Cluster) Validate() error
- func (c *Cluster) Variables() map[string]interface{}
- func (c *Cluster) Verify() error
- func (c *Cluster) VerifyInstancePools() error
- func (c *Cluster) WaitForConvergance() error
Constants ¶
const ( // represents Terraform in a destroy state StateDestroy = "destroy" ExistingVPCAnnotationKey = "tarmak.io/existing-vpc-id" ExistingPublicSubnetIDsAnnotationKey = "tarmak.io/existing-public-subnet-ids" ExistingPrivateSubnetIDsAnnotationKey = "tarmak.io/existing-private-subnet-ids" JenkinsCertificateARNAnnotationKey = "tarmak.io/jenkins-certificate-arn" )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(init interfaces.Initialize) (cluster *clusterv1alpha1.Cluster, err error)
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
returns a server
func NewFromConfig ¶
func NewFromConfig(environment interfaces.Environment, conf *clusterv1alpha1.Cluster) (*Cluster, error)
func (*Cluster) APITunnel ¶
func (c *Cluster) APITunnel() interfaces.Tunnel
func (*Cluster) AmazonEBSEncrypted ¶
retrieve Amazons EBS encryption status
func (*Cluster) ClusterName ¶
func (*Cluster) Config ¶
func (c *Cluster) Config() *clusterv1alpha1.Cluster
func (*Cluster) ConfigPath ¶
func (*Cluster) Environment ¶
func (c *Cluster) Environment() interfaces.Environment
func (*Cluster) InstancePool ¶
func (c *Cluster) InstancePool(roleName string) interfaces.InstancePool
func (*Cluster) InstancePools ¶
func (c *Cluster) InstancePools() []interfaces.InstancePool
func (*Cluster) InstancePoolsMap ¶
func (c *Cluster) InstancePoolsMap() (instancePoolsMap map[string][]*clusterv1alpha1.InstancePool)
func (*Cluster) NetworkCIDR ¶
func (*Cluster) Parameters ¶
func (*Cluster) PrivateAPIHostname ¶
get API server private hostname
func (*Cluster) PublicAPIHostname ¶
get API server public hostname
func (*Cluster) ReapplyConfiguration ¶
This enforces a reapply of the puppet.tar.gz on every instance in the cluster
func (*Cluster) RemoteState ¶
func (*Cluster) SSHConfigPath ¶
func (*Cluster) SSHHostKeysPath ¶
func (*Cluster) Subnets ¶
func (c *Cluster) Subnets() (subnets []clusterv1alpha1.Subnet)
func (*Cluster) TerraformOutput ¶
get the terrform output from this cluster
func (*Cluster) UploadConfiguration ¶
This upload the puppet.tar.gz to the cluster, warning there is some duplication as terraform is also uploading this puppet.tar.gz
func (*Cluster) VerifyInstancePools ¶
Verify instance pools
func (*Cluster) WaitForConvergance ¶
This waits until all instances have congverged successfully