Documentation ¶
Index ¶
- Constants
- Variables
- type InstanceGroup
- func (r *InstanceGroup) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)
- func (r *InstanceGroup) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)
- func (r *InstanceGroup) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)
- func (r *InstanceGroup) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)
- type Shared
Constants ¶
View Source
const ( // MasterIPAttempts specifies how many times are allowed to be taken to get the master node IP. MasterIPAttempts = 40 // MasterIPSleepSecondsPerAttempt specifies how much time should pass after a failed attempt to get the master IP. MasterIPSleepSecondsPerAttempt = 3 // DeleteAttempts specifies the amount of retries are allowed when trying to delete instance templates. DeleteAttempts = 150 // RetrySleepSeconds specifies the time to sleep after a failed attempt to delete instance templates. DeleteSleepSeconds = 5 )
Variables ¶
View Source
var Sdk *googleSDK.Sdk
Sdk represents the connection to the google cloud SDK
Functions ¶
This section is empty.
Types ¶
type InstanceGroup ¶
type InstanceGroup struct { Location string Size string Image string Count int SSHFingerprint string BootstrapScripts []string ServerPool *cluster.ServerPool }
InstanceGroup is a representation of the server to be created on the cloud provider.
func (*InstanceGroup) Actual ¶
func (r *InstanceGroup) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)
Actual is used to build a cluster based on instances on the cloud provider.
func (*InstanceGroup) Apply ¶
func (r *InstanceGroup) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)
Apply is used to create the expected resources on the cloud provider.
Click to show internal directories.
Click to hide internal directories.