Documentation ¶
Index ¶
- type ClusterSize
- type Cmd
- func (c *Cmd) Close() error
- func (c *Cmd) CreateCluster(name, cloud string, clusterSize ClusterSize, zones []string, ...) error
- func (c *Cmd) DeleteCluster(name string) error
- func (c *Cmd) ExportKubecfg(name string) error
- func (c *Cmd) GetCluster(name string) (string, error)
- func (c *Cmd) GetKubeConfigPath() string
- func (c *Cmd) GetOutputDirectory() string
- func (c *Cmd) RollingUpdateCluster(name string) error
- func (c *Cmd) UpdateCluster(name string) error
- func (c *Cmd) UpgradeCluster(name string) error
- func (c *Cmd) ValidateCluster(name string, silent bool) error
- func (c *Cmd) Version() (string, error)
- func (c *Cmd) WaitForKubernetesReadiness(dns string, timeout int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterSize ¶
ClusterSize is sizing configuration used by kops at cluster creation.
func GetSize ¶
func GetSize(size string) (ClusterSize, error)
GetSize takes a size keyword and returns the matching kops cluster configuration.
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd is the kops command to execute.
func New ¶
func New(s3StateStore string, logger log.FieldLogger) (*Cmd, error)
New creates a new instance of Cmd through which to execute kops.
func (*Cmd) CreateCluster ¶
func (c *Cmd) CreateCluster(name, cloud string, clusterSize ClusterSize, zones []string, privateSubnetIds, publicSubnetIds string) error
CreateCluster invokes kops create cluster, using the context of the created Cmd.
func (*Cmd) DeleteCluster ¶
DeleteCluster invokes kops delete cluster, using the context of the created Cmd.
func (*Cmd) ExportKubecfg ¶
ExportKubecfg invokes kops export kubecfg for the named cluster in the context of the created Cmd.
func (*Cmd) GetCluster ¶
GetCluster invokes kops get cluster, using the context of the created Cmd, and returns the stdout.
func (*Cmd) GetKubeConfigPath ¶
GetKubeConfigPath returns the temporary kubeconfig directory used by kops.
func (*Cmd) GetOutputDirectory ¶
GetOutputDirectory returns the temporary output directory used by kops.
func (*Cmd) RollingUpdateCluster ¶
RollingUpdateCluster invokes kops rolling-update cluster, using the context of the created Cmd.
func (*Cmd) UpdateCluster ¶
UpdateCluster invokes kops update cluster, using the context of the created Cmd.
func (*Cmd) UpgradeCluster ¶
UpgradeCluster invokes kops upgrade cluster, using the context of the created Cmd.
func (*Cmd) ValidateCluster ¶
ValidateCluster invokes kops validate cluster, using the context of the created Cmd.
func (*Cmd) Version ¶
Version invokes kops version, using the context of the created Cmd, and returns the stdout.
func (*Cmd) WaitForKubernetesReadiness ¶
WaitForKubernetesReadiness will poll a given kubernetes cluster at a regular interval for it to become ready. If the cluster fails to become ready before the provided timeout then an error will be returned.