Documentation ¶
Index ¶
- Constants
- func WaitForMachineSetReady(apiClient *clients.Settings, namespace, machineSetName string, ...) error
- type SetBuilder
- func ListWorkerMachineSets(apiClient *clients.Settings, namespace string, workerLabel string, ...) ([]*SetBuilder, error)
- func NewSetBuilderFromCopy(apiClient *clients.Settings, nsName string, instanceType string, ...) *SetBuilder
- func PullSet(apiClient *clients.Settings, name, namespace string) (*SetBuilder, error)
- func (builder *SetBuilder) AWSChangeProviderInstanceType(instanceType string) error
- func (builder *SetBuilder) AzureChangeProviderVMSize(vmSize string) error
- func (builder *SetBuilder) ChangeCloudProviderInstanceType(instanceType string) error
- func (builder *SetBuilder) Create() (*SetBuilder, error)
- func (builder *SetBuilder) Delete() error
- func (builder *SetBuilder) Exists() bool
- func (builder *SetBuilder) GCPChangeProviderMachineType(machineType string) error
Constants ¶
const ( // AwsCloud const definition. AwsCloud = "aws" // GcpCloud const definition. GcpCloud = "gcp" // AzureCloud const definition. AzureCloud = "azure" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SetBuilder ¶
type SetBuilder struct { // SetBuilder definition. Used to create // MachineSet object with minimum set of required elements. Definition *machinev1beta1.MachineSet // Created SetBuilder object on the cluster. Object *machinev1beta1.MachineSet // contains filtered or unexported fields }
SetBuilder provides a struct for MachineSet object from the cluster and a MachineSet definition.
func ListWorkerMachineSets ¶
func ListWorkerMachineSets( apiClient *clients.Settings, namespace string, workerLabel string, options ...metav1.ListOptions) ([]*SetBuilder, error)
ListWorkerMachineSets returns a slice of SetBuilder objects in a namespace on a cluster.
func NewSetBuilderFromCopy ¶
func NewSetBuilderFromCopy( apiClient *clients.Settings, nsName string, instanceType string, workerLabel string, replicas int32) *SetBuilder
NewSetBuilderFromCopy returns an SetBuilder struct from a copied MachineSet.
func PullSet ¶
func PullSet(apiClient *clients.Settings, name, namespace string) (*SetBuilder, error)
PullSet loads an existing MachineSet into Builder struct.
func (*SetBuilder) AWSChangeProviderInstanceType ¶
func (builder *SetBuilder) AWSChangeProviderInstanceType(instanceType string) error
AWSChangeProviderInstanceType changes the ProviderSpec InstanceType param for AWS public cloud.
func (*SetBuilder) AzureChangeProviderVMSize ¶
func (builder *SetBuilder) AzureChangeProviderVMSize(vmSize string) error
AzureChangeProviderVMSize changes the ProviderSpec VMSize param for Azure public cloud.
func (*SetBuilder) ChangeCloudProviderInstanceType ¶
func (builder *SetBuilder) ChangeCloudProviderInstanceType(instanceType string) error
ChangeCloudProviderInstanceType calls the cloud-specific function to change the ProviderSpec instance type param.
func (*SetBuilder) Create ¶
func (builder *SetBuilder) Create() (*SetBuilder, error)
Create makes a MachineSet in cluster and stores the created object in struct.
func (*SetBuilder) Delete ¶
func (builder *SetBuilder) Delete() error
Delete removes a MachineSet object from a cluster.
func (*SetBuilder) Exists ¶
func (builder *SetBuilder) Exists() bool
Exists checks whether the given MachineSet exists.
func (*SetBuilder) GCPChangeProviderMachineType ¶
func (builder *SetBuilder) GCPChangeProviderMachineType(machineType string) error
GCPChangeProviderMachineType changes the ProviderSpec MachineType param for GCP public cloud.