cluster

package
v0.0.0-...-a80b3ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

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

View Source
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

func (c *Cluster) AmazonEBSEncrypted() bool

retrieve Amazons EBS encryption status

func (*Cluster) ClusterName

func (c *Cluster) ClusterName() string

func (*Cluster) Config

func (c *Cluster) Config() *clusterv1alpha1.Cluster

func (*Cluster) ConfigPath

func (c *Cluster) ConfigPath() string

func (*Cluster) Environment

func (c *Cluster) Environment() interfaces.Environment

func (*Cluster) GetState

func (c *Cluster) GetState() string

GetState retreives the state of Terraform

func (*Cluster) ImageIDs

func (c *Cluster) ImageIDs() (map[string]string, error)

func (*Cluster) Images

func (c *Cluster) Images() []string

This methods aggregates all images of the pools

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) ListHosts

func (c *Cluster) ListHosts() ([]interfaces.Host, error)

func (*Cluster) Log

func (c *Cluster) Log() *logrus.Entry

func (*Cluster) Name

func (c *Cluster) Name() string

func (*Cluster) NetworkCIDR

func (c *Cluster) NetworkCIDR() *net.IPNet

func (*Cluster) Parameters

func (c *Cluster) Parameters() map[string]string

func (*Cluster) PrivateAPIHostname

func (c *Cluster) PrivateAPIHostname() string

get API server private hostname

func (*Cluster) PublicAPIHostname

func (c *Cluster) PublicAPIHostname() string

get API server public hostname

func (*Cluster) ReapplyConfiguration

func (c *Cluster) ReapplyConfiguration() error

This enforces a reapply of the puppet.tar.gz on every instance in the cluster

func (*Cluster) Region

func (c *Cluster) Region() string

func (*Cluster) RemoteState

func (c *Cluster) RemoteState() string

func (*Cluster) Role

func (c *Cluster) Role(roleName string) *role.Role

func (*Cluster) Roles

func (c *Cluster) Roles() (roles []*role.Role)

func (*Cluster) SSHConfigPath

func (c *Cluster) SSHConfigPath() string

func (*Cluster) SSHHostKeysPath

func (c *Cluster) SSHHostKeysPath() string

func (*Cluster) SetState

func (c *Cluster) SetState(state string)

SetState records the state of Terraform

func (*Cluster) Subnets

func (c *Cluster) Subnets() (subnets []clusterv1alpha1.Subnet)

func (*Cluster) TerraformOutput

func (c *Cluster) TerraformOutput() (map[string]interface{}, error)

get the terrform output from this cluster

func (*Cluster) Type

func (c *Cluster) Type() string

Determine if this Cluster is a cluster or hub, single or multi environment

func (*Cluster) UploadConfiguration

func (c *Cluster) UploadConfiguration() error

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) Validate

func (c *Cluster) Validate() error

func (*Cluster) Variables

func (c *Cluster) Variables() map[string]interface{}

func (*Cluster) Verify

func (c *Cluster) Verify() error

Verify cluster

func (*Cluster) VerifyInstancePools

func (c *Cluster) VerifyInstancePools() error

Verify instance pools

func (*Cluster) WaitForConvergance

func (c *Cluster) WaitForConvergance() error

This waits until all instances have congverged successfully

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL