Documentation ¶
Index ¶
- func ListMCPWaitToBeStableFor(apiClient *clients.Settings, stableDuration, timeout time.Duration, ...) error
- type AdditionalOptions
- type KubeletConfigBuilder
- func (builder *KubeletConfigBuilder) Create() (*KubeletConfigBuilder, error)
- func (builder *KubeletConfigBuilder) Delete() error
- func (builder *KubeletConfigBuilder) Exists() bool
- func (builder *KubeletConfigBuilder) Get() (*mcv1.KubeletConfig, error)
- func (builder *KubeletConfigBuilder) WithMCPoolSelector(key, value string) *KubeletConfigBuilder
- func (builder *KubeletConfigBuilder) WithOptions(options ...AdditionalOptions) *KubeletConfigBuilder
- func (builder *KubeletConfigBuilder) WithSystemReserved(cpu, memory string) *KubeletConfigBuilder
- type MCAdditionalOptions
- type MCBuilder
- func (builder *MCBuilder) Create() (*MCBuilder, error)
- func (builder *MCBuilder) Delete() error
- func (builder *MCBuilder) Exists() bool
- func (builder *MCBuilder) Get() (*mcv1.MachineConfig, error)
- func (builder *MCBuilder) Update() (*MCBuilder, error)
- func (builder *MCBuilder) WithExtensions(extensions []string) *MCBuilder
- func (builder *MCBuilder) WithFIPS(fips bool) *MCBuilder
- func (builder *MCBuilder) WithKernelArguments(kernelArgs []string) *MCBuilder
- func (builder *MCBuilder) WithKernelType(kernelType string) *MCBuilder
- func (builder *MCBuilder) WithLabel(key, value string) *MCBuilder
- func (builder *MCBuilder) WithOptions(options ...MCAdditionalOptions) *MCBuilder
- func (builder *MCBuilder) WithRawConfig(config []byte) *MCBuilder
- type MCPAdditionalOptions
- type MCPBuilder
- func ListMCP(apiClient *clients.Settings, options ...runtimeclient.ListOptions) ([]*MCPBuilder, error)
- func ListMCPByMachineConfigSelector(apiClient *clients.Settings, mcpLabel string, ...) (*MCPBuilder, error)
- func NewMCPBuilder(apiClient *clients.Settings, mcpName string) *MCPBuilder
- func Pull(apiClient *clients.Settings, name string) (*MCPBuilder, error)
- func (builder *MCPBuilder) Create() (*MCPBuilder, error)
- func (builder *MCPBuilder) Delete() error
- func (builder *MCPBuilder) Exists() bool
- func (builder *MCPBuilder) Get() (*mcv1.MachineConfigPool, error)
- func (builder *MCPBuilder) IsInCondition(mcpConditionType mcv1.MachineConfigPoolConditionType) bool
- func (builder *MCPBuilder) WaitForUpdate(timeout time.Duration) error
- func (builder *MCPBuilder) WaitToBeInCondition(conditionType mcv1.MachineConfigPoolConditionType, ...) error
- func (builder *MCPBuilder) WaitToBeStableFor(stableDuration time.Duration, timeout time.Duration) error
- func (builder *MCPBuilder) WithMcSelector(mcSelector map[string]string) *MCPBuilder
- func (builder *MCPBuilder) WithOptions(options ...MCPAdditionalOptions) *MCPBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListMCPWaitToBeStableFor ¶
func ListMCPWaitToBeStableFor( apiClient *clients.Settings, stableDuration, timeout time.Duration, options ...runtimeclient.ListOptions) error
ListMCPWaitToBeStableFor waits for a given MachineConfigurationPool to be stable for a given period.
Types ¶
type AdditionalOptions ¶
type AdditionalOptions func(builder *KubeletConfigBuilder) (*KubeletConfigBuilder, error)
AdditionalOptions for kubeletconfig object.
type KubeletConfigBuilder ¶
type KubeletConfigBuilder struct { // KubeletConfig definition. Used to create KubeletConfig object with minimum set of required elements. Definition *mcv1.KubeletConfig // Created KubeletConfig object on the cluster. Object *mcv1.KubeletConfig // contains filtered or unexported fields }
KubeletConfigBuilder provides struct for KubeletConfig Object which contains connection to cluster and KubeletConfig definitions.
func NewKubeletConfigBuilder ¶
func NewKubeletConfigBuilder(apiClient *clients.Settings, name string) *KubeletConfigBuilder
NewKubeletConfigBuilder provides struct for KubeletConfig object which contains connection to cluster and KubeletConfig definition.
func PullKubeletConfig ¶
func PullKubeletConfig(apiClient *clients.Settings, name string) (*KubeletConfigBuilder, error)
PullKubeletConfig fetches existing kubeletconfig from cluster.
func (*KubeletConfigBuilder) Create ¶
func (builder *KubeletConfigBuilder) Create() (*KubeletConfigBuilder, error)
Create generates a kubeletconfig in the cluster and stores the created object in struct.
func (*KubeletConfigBuilder) Delete ¶
func (builder *KubeletConfigBuilder) Delete() error
Delete removes the kubeletconfig.
func (*KubeletConfigBuilder) Exists ¶
func (builder *KubeletConfigBuilder) Exists() bool
Exists checks whether the given kubeletconfig exists.
func (*KubeletConfigBuilder) Get ¶
func (builder *KubeletConfigBuilder) Get() (*mcv1.KubeletConfig, error)
Get returns the KubeletConfig object if found.
func (*KubeletConfigBuilder) WithMCPoolSelector ¶
func (builder *KubeletConfigBuilder) WithMCPoolSelector(key, value string) *KubeletConfigBuilder
WithMCPoolSelector redefines kubeletconfig definition with the given machineConfigPoolSelector field.
func (*KubeletConfigBuilder) WithOptions ¶
func (builder *KubeletConfigBuilder) WithOptions(options ...AdditionalOptions) *KubeletConfigBuilder
WithOptions creates the kubeletconfig with generic mutation options.
func (*KubeletConfigBuilder) WithSystemReserved ¶
func (builder *KubeletConfigBuilder) WithSystemReserved(cpu, memory string) *KubeletConfigBuilder
WithSystemReserved redefines kubeletconfig definition with the given systemreserved fields.
type MCAdditionalOptions ¶
MCAdditionalOptions for machineconfig object.
type MCBuilder ¶
type MCBuilder struct { // MachineConfig definition. Used to create MachineConfig object with minimum set of required elements. Definition *mcv1.MachineConfig // Created MachineConfig object on the cluster. Object *mcv1.MachineConfig // contains filtered or unexported fields }
MCBuilder provides struct for MachineConfig Object which contains connection to cluster and MachineConfig definitions.
func ListMC ¶
func ListMC(apiClient *clients.Settings, options ...runtimeclient.ListOptions) ([]*MCBuilder, error)
ListMC returns a list of builders for MachineConfigs.
func NewMCBuilder ¶
NewMCBuilder provides struct for MachineConfig object which contains connection to cluster and MachineConfig definition.
func PullMachineConfig ¶
PullMachineConfig fetches existing machineconfig from cluster.
func (*MCBuilder) Create ¶
Create generates a machineconfig in the cluster and stores the created object in struct.
func (*MCBuilder) Get ¶
func (builder *MCBuilder) Get() (*mcv1.MachineConfig, error)
Get returns the MachineConfig object if found.
func (*MCBuilder) Update ¶
Update renovates the existing machineconfig object with machineconfig definition in builder.
func (*MCBuilder) WithExtensions ¶
WithExtensions sets the specified Extensions to the MachineConfig.
func (*MCBuilder) WithKernelArguments ¶
WithKernelArguments sets the specified KernelArguments to the MachineConfig.
func (*MCBuilder) WithKernelType ¶
WithKernelType sets the specified kernelType to the MachineConfig.
func (*MCBuilder) WithOptions ¶
func (builder *MCBuilder) WithOptions(options ...MCAdditionalOptions) *MCBuilder
WithOptions creates the machineconfig with generic mutation options.
func (*MCBuilder) WithRawConfig ¶
WithRawConfig sets the specified Config to the MachineConfig.
type MCPAdditionalOptions ¶
type MCPAdditionalOptions func(builder *MCPBuilder) (*MCPBuilder, error)
MCPAdditionalOptions additional options for mcp object.
type MCPBuilder ¶
type MCPBuilder struct { // MachineConfigPool definition. Used to create MachineConfigPool object with minimum set of required elements. Definition *mcv1.MachineConfigPool // Created MachineConfigPool object on the cluster. Object *mcv1.MachineConfigPool // contains filtered or unexported fields }
MCPBuilder provides struct for MachineConfigPool object which contains connection to cluster and MachineConfigPool definitions.
func ListMCP ¶
func ListMCP(apiClient *clients.Settings, options ...runtimeclient.ListOptions) ([]*MCPBuilder, error)
ListMCP returns a list of MachineConfigPoolBuilder.
func ListMCPByMachineConfigSelector ¶
func ListMCPByMachineConfigSelector( apiClient *clients.Settings, mcpLabel string, options ...runtimeclient.ListOptions) (*MCPBuilder, error)
ListMCPByMachineConfigSelector returns a list of MachineConfigurationPoolBuilders for given selector.
func NewMCPBuilder ¶
func NewMCPBuilder(apiClient *clients.Settings, mcpName string) *MCPBuilder
NewMCPBuilder method creates new instance of builder.
func Pull ¶
func Pull(apiClient *clients.Settings, name string) (*MCPBuilder, error)
Pull pulls existing machineconfigpool from cluster.
func (*MCPBuilder) Create ¶
func (builder *MCPBuilder) Create() (*MCPBuilder, error)
Create makes a MachineConfigPool in cluster and stores the created object in struct.
func (*MCPBuilder) Delete ¶
func (builder *MCPBuilder) Delete() error
Delete removes a MachineConfigPool object from a cluster.
func (*MCPBuilder) Exists ¶
func (builder *MCPBuilder) Exists() bool
Exists checks whether the given MachineConfigPool exists.
func (*MCPBuilder) Get ¶
func (builder *MCPBuilder) Get() (*mcv1.MachineConfigPool, error)
Get returns the MachineConfigPool object if found.
func (*MCPBuilder) IsInCondition ¶
func (builder *MCPBuilder) IsInCondition(mcpConditionType mcv1.MachineConfigPoolConditionType) bool
IsInCondition parses MachineConfigPool conditions. Returns true if given MachineConfigPool is in given condition, otherwise false.
func (*MCPBuilder) WaitForUpdate ¶
func (builder *MCPBuilder) WaitForUpdate(timeout time.Duration) error
WaitForUpdate waits for a MachineConfigPool to be updating and then updated.
func (*MCPBuilder) WaitToBeInCondition ¶
func (builder *MCPBuilder) WaitToBeInCondition( conditionType mcv1.MachineConfigPoolConditionType, conditionStatus corev1.ConditionStatus, timeout time.Duration, ) error
WaitToBeInCondition waits for a specific time duration until the MachineConfigPool will have a specified condition type with the expected status.
func (*MCPBuilder) WaitToBeStableFor ¶
func (builder *MCPBuilder) WaitToBeStableFor(stableDuration time.Duration, timeout time.Duration) error
WaitToBeStableFor waits on MachineConfigPool to stable for a time duration or until timeout.
func (*MCPBuilder) WithMcSelector ¶
func (builder *MCPBuilder) WithMcSelector(mcSelector map[string]string) *MCPBuilder
WithMcSelector defines the machineConfigSelector in the machine config pool.
func (*MCPBuilder) WithOptions ¶
func (builder *MCPBuilder) WithOptions(options ...MCPAdditionalOptions) *MCPBuilder
WithOptions creates mcp with generic mutation options.