Help us shape the future of Go! Take the 2026 Go Developer Survey

v1alpha1

package
v0.63.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 217

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/gardener/machine-controller-manager/pkg/apis/machine +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=machine.sapcloud.io +kubebuilder:object:generate=true Package v1alpha1 is a version of the API.

Index

Constants

View Source
const (
	// AnnotationKeyMachineUpdateFailedReason is the annotation key that indicates the reason for a machine update failure.
	AnnotationKeyMachineUpdateFailedReason = "node.machine.sapcloud.io/update-failed-reason"
	// AnnotationKeyMachineEffectiveCreationTimeout is the annotation key set on the MachineDeployment that indicates
	// the effective creation timeout for all Machine's belonging to this MachineDeployment. If specified, the value for this
	// annotation takes precedence over the MachineDeployment.Spec.Template.Spec.MachineCreationTimeout.
	AnnotationKeyMachineEffectiveCreationTimeout = "node.machine.sapcloud.io/effective-creation-timeout"
	// AnnotationKeyMachineJoinDuration is the annotation key set on the Machine that indicates the amount of time Machine
	// took to join the cluster and is useful for diagnosis. The value is a Go Duration string.
	AnnotationKeyMachineJoinDuration = "node.machine.sapcloud.io/machine-join-duration"
	// LabelKeyNodeCandidateForUpdate is the label key that indicates a node is a candidate for update.
	LabelKeyNodeCandidateForUpdate = "node.machine.sapcloud.io/candidate-for-update"
	// LabelKeyNodeSelectedForUpdate is the label key that indicates a node has been selected for update.
	LabelKeyNodeSelectedForUpdate = "node.machine.sapcloud.io/selected-for-update"
	// LabelKeyNodeUpdateResult is the label key that indicates the result of the update on the node.
	LabelKeyNodeUpdateResult = "node.machine.sapcloud.io/update-result"

	// LabelValueNodeUpdateSuccessful is the label value that indicates the update on the node has succeeded.
	LabelValueNodeUpdateSuccessful = "successful"
	// LabelValueNodeUpdateFailed is the label value that indicates the update on the node has failed.
	LabelValueNodeUpdateFailed = "failed"
)
View Source
const (
	// NodeInPlaceUpdate is a node condition type for in-place update
	NodeInPlaceUpdate corev1.NodeConditionType = "InPlaceUpdate"

	// CandidateForUpdate is a constant for reason in condition that indicates node is candidate for update
	CandidateForUpdate string = "CandidateForUpdate"

	// SelectedForUpdate is a constant for reason in condition that indicates node is selected for update
	SelectedForUpdate string = "SelectedForUpdate"

	// ReadyForUpdate is a constant for reason in condition that indicates node is ready for update
	ReadyForUpdate string = "ReadyForUpdate"

	// DrainSuccessful is a constant for reason in condition that indicates node drain is successful
	DrainSuccessful string = "DrainSuccessful"

	// UpdateSuccessful is a constant for reason in condition that indicates update succeeded
	UpdateSuccessful string = "UpdateSuccessful"

	// UpdateFailed is a constant for reason in condition that indicates update failed
	UpdateFailed string = "UpdateFailed"
)
View Source
const (
	// NodePreserved is a node condition type for preservation of machines to allow end-user to know that a node is preserved
	NodePreserved corev1.NodeConditionType = "Preserved"

	// PreservedByMCM is a node condition reason for preservation of machines to indicate that the node is auto-preserved by MCM
	PreservedByMCM string = "Preserved by MCM."

	// PreservedByUser is a node condition reason to indicate that a machine/node has been preserved due to explicit annotation by user
	PreservedByUser string = "Preserved by user."

	// PreservationStopped is a node condition reason to indicate that a machine/node preservation has been stopped due to annotation update or timeout
	PreservationStopped string = "Preservation stopped."

	// PreservedNodeDrainSuccessful is a constant for the message in condition that indicates that the preserved node's drain is successful
	PreservedNodeDrainSuccessful string = "Preserved node drained successfully."

	// PreservedNodeDrainUnsuccessful is a constant for the message in condition that indicates that the preserved node's drain was not successful
	PreservedNodeDrainUnsuccessful string = "Preserved node could not be drained."
)
View Source
const (
	// DefaultMachineDeploymentUniqueLabelKey is the default key of the selector that is added
	// to existing MCs (and label key that is added to its machines) to prevent the existing MCs
	// to select new machines (and old machines being select by new MC).
	DefaultMachineDeploymentUniqueLabelKey string = "machine-template-hash"
)
View Source
const GroupName = "machine.sapcloud.io"

GroupName is the group name use in this package

View Source
const (
	NodeLabelKey string = "node"
)

NodeLabelKey is the key for node label on machine object

Variables

View Source
var (
	// SchemeBuilder used to register the Machine resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_machine_ClassSpec_To_v1alpha1_ClassSpec

func Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(in *machine.ClassSpec, out *ClassSpec, s conversion.Scope) error

Convert_machine_ClassSpec_To_v1alpha1_ClassSpec is an autogenerated conversion function.

func Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus

func Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in *machine.CurrentStatus, out *CurrentStatus, s conversion.Scope) error

Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus is an autogenerated conversion function.

func Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment added in v0.57.0

func Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in *machine.InPlaceUpdateMachineDeployment, out *InPlaceUpdateMachineDeployment, s conversion.Scope) error

Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment is an autogenerated conversion function.

func Convert_machine_LastOperation_To_v1alpha1_LastOperation

func Convert_machine_LastOperation_To_v1alpha1_LastOperation(in *machine.LastOperation, out *LastOperation, s conversion.Scope) error

Convert_machine_LastOperation_To_v1alpha1_LastOperation is an autogenerated conversion function.

func Convert_machine_MachineClassList_To_v1alpha1_MachineClassList added in v0.30.0

func Convert_machine_MachineClassList_To_v1alpha1_MachineClassList(in *machine.MachineClassList, out *MachineClassList, s conversion.Scope) error

Convert_machine_MachineClassList_To_v1alpha1_MachineClassList is an autogenerated conversion function.

func Convert_machine_MachineClass_To_v1alpha1_MachineClass added in v0.30.0

func Convert_machine_MachineClass_To_v1alpha1_MachineClass(in *machine.MachineClass, out *MachineClass, s conversion.Scope) error

Convert_machine_MachineClass_To_v1alpha1_MachineClass is an autogenerated conversion function.

func Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration added in v0.33.0

func Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in *machine.MachineConfiguration, out *MachineConfiguration, s conversion.Scope) error

Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration is an autogenerated conversion function.

func Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition

func Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in *machine.MachineDeploymentCondition, out *MachineDeploymentCondition, s conversion.Scope) error

Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition is an autogenerated conversion function.

func Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList

func Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in *machine.MachineDeploymentList, out *MachineDeploymentList, s conversion.Scope) error

Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList is an autogenerated conversion function.

func Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec

func Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in *machine.MachineDeploymentSpec, out *MachineDeploymentSpec, s conversion.Scope) error

Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec is an autogenerated conversion function.

func Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus

func Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in *machine.MachineDeploymentStatus, out *MachineDeploymentStatus, s conversion.Scope) error

Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus is an autogenerated conversion function.

func Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy

func Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in *machine.MachineDeploymentStrategy, out *MachineDeploymentStrategy, s conversion.Scope) error

Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy is an autogenerated conversion function.

func Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment

func Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in *machine.MachineDeployment, out *MachineDeployment, s conversion.Scope) error

Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment is an autogenerated conversion function.

func Convert_machine_MachineList_To_v1alpha1_MachineList

func Convert_machine_MachineList_To_v1alpha1_MachineList(in *machine.MachineList, out *MachineList, s conversion.Scope) error

Convert_machine_MachineList_To_v1alpha1_MachineList is an autogenerated conversion function.

func Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition

func Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in *machine.MachineSetCondition, out *MachineSetCondition, s conversion.Scope) error

Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition is an autogenerated conversion function.

func Convert_machine_MachineSetList_To_v1alpha1_MachineSetList

func Convert_machine_MachineSetList_To_v1alpha1_MachineSetList(in *machine.MachineSetList, out *MachineSetList, s conversion.Scope) error

Convert_machine_MachineSetList_To_v1alpha1_MachineSetList is an autogenerated conversion function.

func Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec

func Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in *machine.MachineSetSpec, out *MachineSetSpec, s conversion.Scope) error

Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec is an autogenerated conversion function.

func Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus

func Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in *machine.MachineSetStatus, out *MachineSetStatus, s conversion.Scope) error

Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus is an autogenerated conversion function.

func Convert_machine_MachineSet_To_v1alpha1_MachineSet

func Convert_machine_MachineSet_To_v1alpha1_MachineSet(in *machine.MachineSet, out *MachineSet, s conversion.Scope) error

Convert_machine_MachineSet_To_v1alpha1_MachineSet is an autogenerated conversion function.

func Convert_machine_MachineSpec_To_v1alpha1_MachineSpec

func Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(in *machine.MachineSpec, out *MachineSpec, s conversion.Scope) error

Convert_machine_MachineSpec_To_v1alpha1_MachineSpec is an autogenerated conversion function.

func Convert_machine_MachineStatus_To_v1alpha1_MachineStatus

func Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(in *machine.MachineStatus, out *MachineStatus, s conversion.Scope) error

Convert_machine_MachineStatus_To_v1alpha1_MachineStatus is an autogenerated conversion function.

func Convert_machine_MachineSummary_To_v1alpha1_MachineSummary

func Convert_machine_MachineSummary_To_v1alpha1_MachineSummary(in *machine.MachineSummary, out *MachineSummary, s conversion.Scope) error

Convert_machine_MachineSummary_To_v1alpha1_MachineSummary is an autogenerated conversion function.

func Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec

func Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in *machine.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error

Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec is an autogenerated conversion function.

func Convert_machine_Machine_To_v1alpha1_Machine

func Convert_machine_Machine_To_v1alpha1_Machine(in *machine.Machine, out *Machine, s conversion.Scope) error

Convert_machine_Machine_To_v1alpha1_Machine is an autogenerated conversion function.

func Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec

func Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in *machine.NodeTemplateSpec, out *NodeTemplateSpec, s conversion.Scope) error

Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec is an autogenerated conversion function.

func Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate added in v0.42.0

func Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in *machine.NodeTemplate, out *NodeTemplate, s conversion.Scope) error

Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate is an autogenerated conversion function.

func Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig

func Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in *machine.RollbackConfig, out *RollbackConfig, s conversion.Scope) error

Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig is an autogenerated conversion function.

func Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment

func Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in *machine.RollingUpdateMachineDeployment, out *RollingUpdateMachineDeployment, s conversion.Scope) error

Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment is an autogenerated conversion function.

func Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration added in v0.57.0

func Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in *machine.UpdateConfiguration, out *UpdateConfiguration, s conversion.Scope) error

Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ClassSpec_To_machine_ClassSpec

func Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(in *ClassSpec, out *machine.ClassSpec, s conversion.Scope) error

Convert_v1alpha1_ClassSpec_To_machine_ClassSpec is an autogenerated conversion function.

func Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus

func Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in *CurrentStatus, out *machine.CurrentStatus, s conversion.Scope) error

Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus is an autogenerated conversion function.

func Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment added in v0.57.0

func Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in *InPlaceUpdateMachineDeployment, out *machine.InPlaceUpdateMachineDeployment, s conversion.Scope) error

Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment is an autogenerated conversion function.

func Convert_v1alpha1_LastOperation_To_machine_LastOperation

func Convert_v1alpha1_LastOperation_To_machine_LastOperation(in *LastOperation, out *machine.LastOperation, s conversion.Scope) error

Convert_v1alpha1_LastOperation_To_machine_LastOperation is an autogenerated conversion function.

func Convert_v1alpha1_MachineClassList_To_machine_MachineClassList added in v0.30.0

func Convert_v1alpha1_MachineClassList_To_machine_MachineClassList(in *MachineClassList, out *machine.MachineClassList, s conversion.Scope) error

Convert_v1alpha1_MachineClassList_To_machine_MachineClassList is an autogenerated conversion function.

func Convert_v1alpha1_MachineClass_To_machine_MachineClass added in v0.30.0

func Convert_v1alpha1_MachineClass_To_machine_MachineClass(in *MachineClass, out *machine.MachineClass, s conversion.Scope) error

Convert_v1alpha1_MachineClass_To_machine_MachineClass is an autogenerated conversion function.

func Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration added in v0.33.0

func Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in *MachineConfiguration, out *machine.MachineConfiguration, s conversion.Scope) error

Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition

func Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in *MachineDeploymentCondition, out *machine.MachineDeploymentCondition, s conversion.Scope) error

Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition is an autogenerated conversion function.

func Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList

func Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in *MachineDeploymentList, out *machine.MachineDeploymentList, s conversion.Scope) error

Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList is an autogenerated conversion function.

func Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec

func Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in *MachineDeploymentSpec, out *machine.MachineDeploymentSpec, s conversion.Scope) error

Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec is an autogenerated conversion function.

func Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus

func Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in *MachineDeploymentStatus, out *machine.MachineDeploymentStatus, s conversion.Scope) error

Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus is an autogenerated conversion function.

func Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy

func Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in *MachineDeploymentStrategy, out *machine.MachineDeploymentStrategy, s conversion.Scope) error

Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy is an autogenerated conversion function.

func Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment

func Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in *MachineDeployment, out *machine.MachineDeployment, s conversion.Scope) error

Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment is an autogenerated conversion function.

func Convert_v1alpha1_MachineList_To_machine_MachineList

func Convert_v1alpha1_MachineList_To_machine_MachineList(in *MachineList, out *machine.MachineList, s conversion.Scope) error

Convert_v1alpha1_MachineList_To_machine_MachineList is an autogenerated conversion function.

func Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition

func Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in *MachineSetCondition, out *machine.MachineSetCondition, s conversion.Scope) error

Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition is an autogenerated conversion function.

func Convert_v1alpha1_MachineSetList_To_machine_MachineSetList

func Convert_v1alpha1_MachineSetList_To_machine_MachineSetList(in *MachineSetList, out *machine.MachineSetList, s conversion.Scope) error

Convert_v1alpha1_MachineSetList_To_machine_MachineSetList is an autogenerated conversion function.

func Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec

func Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in *MachineSetSpec, out *machine.MachineSetSpec, s conversion.Scope) error

Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec is an autogenerated conversion function.

func Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus

func Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in *MachineSetStatus, out *machine.MachineSetStatus, s conversion.Scope) error

Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus is an autogenerated conversion function.

func Convert_v1alpha1_MachineSet_To_machine_MachineSet

func Convert_v1alpha1_MachineSet_To_machine_MachineSet(in *MachineSet, out *machine.MachineSet, s conversion.Scope) error

Convert_v1alpha1_MachineSet_To_machine_MachineSet is an autogenerated conversion function.

func Convert_v1alpha1_MachineSpec_To_machine_MachineSpec

func Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(in *MachineSpec, out *machine.MachineSpec, s conversion.Scope) error

Convert_v1alpha1_MachineSpec_To_machine_MachineSpec is an autogenerated conversion function.

func Convert_v1alpha1_MachineStatus_To_machine_MachineStatus

func Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(in *MachineStatus, out *machine.MachineStatus, s conversion.Scope) error

Convert_v1alpha1_MachineStatus_To_machine_MachineStatus is an autogenerated conversion function.

func Convert_v1alpha1_MachineSummary_To_machine_MachineSummary

func Convert_v1alpha1_MachineSummary_To_machine_MachineSummary(in *MachineSummary, out *machine.MachineSummary, s conversion.Scope) error

Convert_v1alpha1_MachineSummary_To_machine_MachineSummary is an autogenerated conversion function.

func Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec

func Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in *MachineTemplateSpec, out *machine.MachineTemplateSpec, s conversion.Scope) error

Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec is an autogenerated conversion function.

func Convert_v1alpha1_Machine_To_machine_Machine

func Convert_v1alpha1_Machine_To_machine_Machine(in *Machine, out *machine.Machine, s conversion.Scope) error

Convert_v1alpha1_Machine_To_machine_Machine is an autogenerated conversion function.

func Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec

func Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in *NodeTemplateSpec, out *machine.NodeTemplateSpec, s conversion.Scope) error

Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec is an autogenerated conversion function.

func Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate added in v0.42.0

func Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in *NodeTemplate, out *machine.NodeTemplate, s conversion.Scope) error

Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate is an autogenerated conversion function.

func Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig

func Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in *RollbackConfig, out *machine.RollbackConfig, s conversion.Scope) error

Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig is an autogenerated conversion function.

func Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment

func Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in *RollingUpdateMachineDeployment, out *machine.RollingUpdateMachineDeployment, s conversion.Scope) error

Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment is an autogenerated conversion function.

func Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration added in v0.57.0

func Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in *UpdateConfiguration, out *machine.UpdateConfiguration, s conversion.Scope) error

Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClassSpec

type ClassSpec struct {
	// API group to which it belongs
	APIGroup string `json:"apiGroup,omitempty"`

	// Kind for machine class
	Kind string `json:"kind,omitempty"`

	// Name of machine class
	Name string `json:"name,omitempty"`
}

ClassSpec is the class specification of machine

func (*ClassSpec) DeepCopy

func (in *ClassSpec) DeepCopy() *ClassSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClassSpec.

func (*ClassSpec) DeepCopyInto

func (in *ClassSpec) DeepCopyInto(out *ClassSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionStatus

type ConditionStatus string

ConditionStatus are valid condition statuses

const (
	ConditionTrue    ConditionStatus = "True"
	ConditionFalse   ConditionStatus = "False"
	ConditionUnknown ConditionStatus = "Unknown"
)

These are valid condition statuses. "ConditionTrue" means a resource is in the condition; "ConditionFalse" means a resource is not in the condition; "ConditionUnknown" means kubernetes can't decide if a resource is in the condition or not. In the future, we could add other intermediate conditions, e.g. ConditionDegraded.

type CurrentStatus

type CurrentStatus struct {
	Phase MachinePhase `json:"phase,omitempty"`

	TimeoutActive bool `json:"timeoutActive,omitempty"`

	// Last update time of current status
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`

	// PreserveExpiryTime is the time at which MCM will stop preserving the machine
	PreserveExpiryTime *metav1.Time `json:"preserveExpiryTime,omitempty"`
}

CurrentStatus contains information about the current status of Machine.

func (*CurrentStatus) DeepCopy

func (in *CurrentStatus) DeepCopy() *CurrentStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CurrentStatus.

func (*CurrentStatus) DeepCopyInto

func (in *CurrentStatus) DeepCopyInto(out *CurrentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InPlaceUpdateMachineDeployment added in v0.57.0

type InPlaceUpdateMachineDeployment struct {
	UpdateConfiguration `json:",inline"`

	// OrchestrationType specifies the orchestration type for the inplace update.
	OrchestrationType OrchestrationType `json:"orchestrationType,omitempty"`
}

InPlaceUpdateMachineDeployment specifies the spec to control the desired behavior of inplace update.

func (*InPlaceUpdateMachineDeployment) DeepCopy added in v0.57.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InPlaceUpdateMachineDeployment.

func (*InPlaceUpdateMachineDeployment) DeepCopyInto added in v0.57.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LastOperation

type LastOperation struct {
	// Description of the current operation
	Description string `json:"description,omitempty"`

	// ErrorCode of the current operation if any
	// +optional
	ErrorCode string `json:"errorCode,omitempty"`

	// Last update time of current operation
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`

	// State of operation
	State MachineState `json:"state,omitempty"`

	// Type of operation
	Type MachineOperationType `json:"type,omitempty"`
}

LastOperation suggests the last operation performed on the object

func (*LastOperation) DeepCopy

func (in *LastOperation) DeepCopy() *LastOperation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastOperation.

func (*LastOperation) DeepCopyInto

func (in *LastOperation) DeepCopyInto(out *LastOperation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Machine

type Machine struct {
	// ObjectMeta for machine object
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// TypeMeta for machine object
	metav1.TypeMeta `json:",inline"`

	// Spec contains the specification of the machine
	Spec MachineSpec `json:"spec,omitempty"`

	// Status contains fields depicting the status
	Status MachineStatus `json:"status,omitempty"`
}

Machine is the representation of a physical or virtual machine.

func (*Machine) DeepCopy

func (in *Machine) DeepCopy() *Machine

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.

func (*Machine) DeepCopyInto

func (in *Machine) DeepCopyInto(out *Machine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Machine) DeepCopyObject

func (in *Machine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineClass added in v0.30.0

type MachineClass struct {
	metav1.TypeMeta `json:",inline"`

	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	// +kubebuilder:validation:XPreserveUnknownFields
	// NodeTemplate contains subfields to track all node resources and other node info required to scale nodegroup from zero
	NodeTemplate *NodeTemplate `json:"nodeTemplate,omitempty"`

	// CredentialsSecretRef can optionally store the credentials (in this case the SecretRef does not need to store them).
	// This might be useful if multiple machine classes with the same credentials but different user-datas are used.
	CredentialsSecretRef *corev1.SecretReference `json:"credentialsSecretRef,omitempty"`

	// +kubebuilder:validation:XPreserveUnknownFields
	// Provider-specific configuration to use during node creation.
	ProviderSpec runtime.RawExtension `json:"providerSpec"`

	// Provider is the combination of name and location of cloud-specific drivers.
	Provider string `json:"provider,omitempty"`

	// SecretRef stores the necessary secrets such as credentials or userdata.
	SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
}

MachineClass can be used to templatize and re-use provider configuration across multiple Machines / MachineSets / MachineDeployments. +k8s:openapi-gen=true +resource:path=machineclasses

func (*MachineClass) DeepCopy added in v0.30.0

func (in *MachineClass) DeepCopy() *MachineClass

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClass.

func (*MachineClass) DeepCopyInto added in v0.30.0

func (in *MachineClass) DeepCopyInto(out *MachineClass)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineClass) DeepCopyObject added in v0.30.0

func (in *MachineClass) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineClassList added in v0.30.0

type MachineClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineClass `json:"items"`
}

MachineClassList contains a list of MachineClasses

func (*MachineClassList) DeepCopy added in v0.30.0

func (in *MachineClassList) DeepCopy() *MachineClassList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassList.

func (*MachineClassList) DeepCopyInto added in v0.30.0

func (in *MachineClassList) DeepCopyInto(out *MachineClassList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineClassList) DeepCopyObject added in v0.30.0

func (in *MachineClassList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineConfiguration added in v0.33.0

type MachineConfiguration struct {
	// MachineDraintimeout is the timeout after which machine is forcefully deleted.
	// +optional
	MachineDrainTimeout *metav1.Duration `json:"drainTimeout,omitempty"`

	// MachineHealthTimeout is the timeout after which machine is declared unhealhty/failed.
	// +optional
	MachineHealthTimeout *metav1.Duration `json:"healthTimeout,omitempty"`

	// MachineCreationTimeout is the timeout after which machinie creation is declared failed.
	// +optional
	MachineCreationTimeout *metav1.Duration `json:"creationTimeout,omitempty"`

	// MachineInPlaceUpdateTimeout is the timeout after which in-place update is declared failed.
	// +optional
	MachineInPlaceUpdateTimeout *metav1.Duration `json:"inPlaceUpdateTimeout,omitempty"`

	// MachinePreserveTimeout is the timeout after which the machine preservation is stopped
	// +optional
	MachinePreserveTimeout *metav1.Duration `json:"machinePreserveTimeout,omitempty"`

	// DisableHealthTimeout if set to true, health timeout will be ignored. Leading to machine never being declared failed.
	// This is intended to be used only for in-place updates.
	// +optional
	DisableHealthTimeout *bool `json:"disableHealthTimeout,omitempty"`

	// MaxEvictRetries is the number of retries that will be attempted while draining the node.
	// +optional
	MaxEvictRetries *int32 `json:"maxEvictRetries,omitempty"`

	// NodeConditions are the set of conditions if set to true for MachineHealthTimeOut, machine will be declared failed.
	// +optional
	NodeConditions *string `json:"nodeConditions,omitempty"`
}

MachineConfiguration describes the configurations useful for the machine-controller.

func (*MachineConfiguration) DeepCopy added in v0.33.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfiguration.

func (*MachineConfiguration) DeepCopyInto added in v0.33.0

func (in *MachineConfiguration) DeepCopyInto(out *MachineConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeployment

type MachineDeployment struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Specification of the desired behavior of the MachineDeployment.
	// +optional
	Spec MachineDeploymentSpec `json:"spec,omitempty"`

	// Most recently observed status of the MachineDeployment.
	// +optional
	Status MachineDeploymentStatus `json:"status,omitempty"`
}

MachineDeployment enables declarative updates for machines and MachineSets.

func (*MachineDeployment) DeepCopy

func (in *MachineDeployment) DeepCopy() *MachineDeployment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeployment.

func (*MachineDeployment) DeepCopyInto

func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineDeployment) DeepCopyObject

func (in *MachineDeployment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineDeploymentCondition

type MachineDeploymentCondition struct {
	// Type of MachineDeployment condition.
	Type MachineDeploymentConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status"`

	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`

	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

MachineDeploymentCondition describes the state of a MachineDeployment at a certain point.

func (*MachineDeploymentCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentCondition.

func (*MachineDeploymentCondition) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentConditionType

type MachineDeploymentConditionType string

MachineDeploymentConditionType are valid conditions of MachineDeployments

const (
	// Available means the MachineDeployment is available, ie. at least the minimum available
	// replicas required are up and running for at least minReadySeconds.
	MachineDeploymentAvailable MachineDeploymentConditionType = "Available"

	// Progressing means the MachineDeployment is progressing. Progress for a MachineDeployment is
	// considered when a new machine set is created or adopted, and when new machines scale
	// up or old machines scale down. Progress is not estimated for paused MachineDeployments. It is also updated
	// if progressDeadlineSeconds is not specified(treated as infinite deadline), in which case it would never be updated to "false".
	MachineDeploymentProgressing MachineDeploymentConditionType = "Progressing"

	// ReplicaFailure is added in a MachineDeployment when one of its machines fails to be created
	// or deleted.
	MachineDeploymentReplicaFailure MachineDeploymentConditionType = "ReplicaFailure"

	// MachineDeploymentFrozen is added in a MachineDeployment when one of its
	// machineSet has either the "freeze" label or the "Frozen" condition on it.
	MachineDeploymentFrozen MachineDeploymentConditionType = "Frozen"
)

These are valid conditions of a MachineDeployment.

type MachineDeploymentList

type MachineDeploymentList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	// Items is the list of MachineDeployments.
	Items []MachineDeployment `json:"items"`
}

MachineDeploymentList is a list of MachineDeployments.

func (*MachineDeploymentList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentList.

func (*MachineDeploymentList) DeepCopyInto

func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineDeploymentList) DeepCopyObject

func (in *MachineDeploymentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineDeploymentSpec

type MachineDeploymentSpec struct {
	// Number of desired machines. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 0.
	// +optional
	Replicas int32 `json:"replicas,omitempty"`

	// Label selector for machines. Existing MachineSets whose machines are
	// selected by this will be the ones affected by this MachineDeployment.
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// Template describes the machines that will be created.
	Template MachineTemplateSpec `json:"template"`

	// The MachineDeployment strategy to use to replace existing machines with new ones.
	// +optional
	// +patchStrategy=retainKeys
	Strategy MachineDeploymentStrategy `json:"strategy,omitempty" patchStrategy:"retainKeys"`

	// Minimum number of seconds for which a newly created machine should be ready
	// without any of its container crashing, for it to be considered available.
	// Defaults to 0 (machine will be considered available as soon as it is ready)
	// +optional
	MinReadySeconds int32 `json:"minReadySeconds,omitempty"`

	// The number of old MachineSets to retain to allow rollback.
	// This is a pointer to distinguish between explicit zero and not specified.
	// +optional
	RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`

	// Indicates that the MachineDeployment is paused and will not be processed by the
	// MachineDeployment controller.
	// +optional
	Paused bool `json:"paused,omitempty"`

	// DEPRECATED.
	// The config this MachineDeployment is rolling back to. Will be cleared after rollback is done.
	// +optional
	RollbackTo *RollbackConfig `json:"rollbackTo,omitempty"`

	// The maximum time in seconds for a MachineDeployment to make progress before it
	// is considered to be failed. The MachineDeployment controller will continue to
	// process failed MachineDeployments and a condition with a ProgressDeadlineExceeded
	// reason will be surfaced in the MachineDeployment status. Note that progress will
	// not be estimated during the time a MachineDeployment is paused. This is not set
	// by default, which is treated as infinite deadline.
	// +optional
	ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"`

	// The maximum number of failed machines in the machine deployment that can be auto-preserved.
	// In the gardener context, this number is derived from the AutoPreserveFailedMachineMax set at the worker level, distributed amongst the worker's machine deployments
	// +optional
	AutoPreserveFailedMachineMax int32 `json:"autoPreserveFailedMachineMax,omitempty"`
}

MachineDeploymentSpec is the specification of the desired behavior of the MachineDeployment.

func (*MachineDeploymentSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentSpec.

func (*MachineDeploymentSpec) DeepCopyInto

func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentStatus

type MachineDeploymentStatus struct {
	// The generation observed by the MachineDeployment controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Total number of non-terminated machines targeted by this MachineDeployment (their labels match the selector).
	// +optional
	Replicas int32 `json:"replicas,omitempty"`

	// Total number of non-terminated machines targeted by this MachineDeployment that have the desired template spec.
	// +optional
	UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`

	// Total number of ready machines targeted by this MachineDeployment.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty"`

	// Total number of available machines (ready for at least minReadySeconds) targeted by this MachineDeployment.
	// +optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty"`

	// PreservedFailedReplicas is the number of preserved machines in Failed phase targeted by this MachineDeployment
	// +optional
	PreservedFailedReplicas int32 `json:"preservedFailedReplicas,omitempty"`

	// Total number of unavailable machines targeted by this MachineDeployment. This is the total number of
	// machines that are still required for the MachineDeployment to have 100% available capacity. They may
	// either be machines that are running but not yet available, machines that still have not been created, or
	// machines that are preserved in Failed phase.
	// +optional
	UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"`

	// Represents the latest available observations of a MachineDeployment's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []MachineDeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// Count of hash collisions for the MachineDeployment. The MachineDeployment controller uses this
	// field as a collision avoidance mechanism when it needs to create the name for the
	// newest MachineSet.
	// +optional
	CollisionCount *int32 `json:"collisionCount,omitempty"`

	// FailedMachines has summary of machines on which lastOperation Failed
	// +optional
	FailedMachines []*MachineSummary `json:"failedMachines,omitempty"`
}

MachineDeploymentStatus is the most recently observed status of the MachineDeployment.

func (*MachineDeploymentStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStatus.

func (*MachineDeploymentStatus) DeepCopyInto

func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentStrategy

type MachineDeploymentStrategy struct {
	// Type of MachineDeployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
	// +optional
	Type MachineDeploymentStrategyType `json:"type,omitempty"`

	// Rolling update config params. Present only if MachineDeploymentStrategyType =
	// RollingUpdate.
	//---
	// TODO: Update this to follow our convention for oneOf, whatever we decide it
	// to be.
	// +optional
	RollingUpdate *RollingUpdateMachineDeployment `json:"rollingUpdate,omitempty"`

	// InPlaceUpdate update config params. Present only if MachineDeploymentStrategyType =
	// InPlaceUpdate.
	// +optional
	InPlaceUpdate *InPlaceUpdateMachineDeployment `json:"inPlaceUpdate,omitempty"`
}

MachineDeploymentStrategy describes how to replace existing machines with new ones.

func (*MachineDeploymentStrategy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStrategy.

func (*MachineDeploymentStrategy) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentStrategyType

type MachineDeploymentStrategyType string

MachineDeploymentStrategyType are valid strategy types for rolling MachineDeployments

const (
	// RecreateMachineDeploymentStrategyType means that all existing machines will be killed before creating new ones.
	RecreateMachineDeploymentStrategyType MachineDeploymentStrategyType = "Recreate"

	// RollingUpdateMachineDeploymentStrategyType means that old MCs will be replaced by new one using rolling update i.e gradually scale down the old MCs and scale up the new one.
	RollingUpdateMachineDeploymentStrategyType MachineDeploymentStrategyType = "RollingUpdate"

	// InPlaceUpdateMachineDeploymentStrategyType signifies that VMs will be updated in place and
	// machine objects will gradually transition from the old MachineSet to the new MachineSet without requiring VM recreation.
	InPlaceUpdateMachineDeploymentStrategyType MachineDeploymentStrategyType = "InPlaceUpdate"
)

type MachineList

type MachineList struct {
	// ObjectMeta for MachineList object
	metav1.TypeMeta `json:",inline"`

	// TypeMeta for MachineList object
	metav1.ListMeta `json:"metadata,omitempty"`

	// Items contains the list of machines
	Items []Machine `json:"items"`
}

MachineList is a collection of Machines.

func (*MachineList) DeepCopy

func (in *MachineList) DeepCopy() *MachineList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.

func (*MachineList) DeepCopyInto

func (in *MachineList) DeepCopyInto(out *MachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineList) DeepCopyObject

func (in *MachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineOperationType

type MachineOperationType string

MachineOperationType is a label for the operation performed on a machine object.

const (
	// MachineOperationCreate indicates that the operation was a create
	MachineOperationCreate MachineOperationType = "Create"

	// MachineOperationUpdate indicates that the operation was an update
	MachineOperationUpdate MachineOperationType = "Update"

	// MachineOperationInPlaceUpdate indicates that the operation was an in-place update
	MachineOperationInPlaceUpdate MachineOperationType = "InPlaceUpdate"

	// MachineOperationDrainNode indicates that the operation was a drain node
	MachineOperationDrainNode MachineOperationType = "DrainNode"

	// MachineOperationHealthCheck indicates that the operation was a health check of node object
	MachineOperationHealthCheck MachineOperationType = "HealthCheck"

	// MachineOperationDelete indicates that the operation was a delete
	MachineOperationDelete MachineOperationType = "Delete"
)

These are the valid statuses of machines.

type MachinePhase

type MachinePhase string

MachinePhase is a label for the condition of a machine at the current time.

const (
	// MachinePending means that the machine is being created
	MachinePending MachinePhase = "Pending"

	// MachineAvailable means that machine is present on provider but hasn't joined cluster yet
	MachineAvailable MachinePhase = "Available"

	// MachineRunning means node is ready and running successfully
	MachineRunning MachinePhase = "Running"

	// MachineTerminating means node is terminating
	MachineTerminating MachinePhase = "Terminating"

	// MachineUnknown indicates that the node is not ready at the movement
	MachineUnknown MachinePhase = "Unknown"

	// MachineFailed means operation timed out
	MachineFailed MachinePhase = "Failed"

	// MachineCrashLoopBackOff means machine creation is failing. It means that machine object is present but there is no corresponding VM.
	MachineCrashLoopBackOff MachinePhase = "CrashLoopBackOff"

	// MachineInPlaceUpdating means machine is being updated in-place
	MachineInPlaceUpdating MachinePhase = "InPlaceUpdating"

	// MachineInPlaceUpdateSuccessful means machine in-place update was successful
	MachineInPlaceUpdateSuccessful MachinePhase = "InPlaceUpdateSuccessful"

	// MachineInPlaceUpdateFailed means machine in-place update failed
	MachineInPlaceUpdateFailed MachinePhase = "InPlaceUpdateFailed"
)

These are the valid phases of machines.

type MachineSet

type MachineSet struct {
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	metav1.TypeMeta `json:",inline"`

	// +optional
	Spec MachineSetSpec `json:"spec,omitempty"`

	// +optional
	Status MachineSetStatus `json:"status,omitempty"`
}

MachineSet TODO

func (*MachineSet) DeepCopy

func (in *MachineSet) DeepCopy() *MachineSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSet.

func (*MachineSet) DeepCopyInto

func (in *MachineSet) DeepCopyInto(out *MachineSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineSet) DeepCopyObject

func (in *MachineSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineSetCondition

type MachineSetCondition struct {
	// Type of machine set condition.
	Type MachineSetConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status"`

	// The last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty"`
}

MachineSetCondition describes the state of a machine set at a certain point.

func (*MachineSetCondition) DeepCopy

func (in *MachineSetCondition) DeepCopy() *MachineSetCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetCondition.

func (*MachineSetCondition) DeepCopyInto

func (in *MachineSetCondition) DeepCopyInto(out *MachineSetCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSetConditionType

type MachineSetConditionType string

MachineSetConditionType is the condition on machineset object

const (
	// MachineSetReplicaFailure is added in a machine set when one of its machines fails to be created
	// due to insufficient quota, limit ranges, machine security policy, node selectors, etc. or deleted
	// due to kubelet being down or finalizers are failing.
	MachineSetReplicaFailure MachineSetConditionType = "ReplicaFailure"
	// MachineSetFrozen is set when the machineset has exceeded its replica threshold at the safety controller
	MachineSetFrozen MachineSetConditionType = "Frozen"
)

These are valid conditions of a machine set.

type MachineSetList

type MachineSetList struct {
	// +optional
	metav1.TypeMeta `json:",inline"`

	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	// +optional
	Items []MachineSet `json:"items"`
}

MachineSetList is a collection of MachineSet.

func (*MachineSetList) DeepCopy

func (in *MachineSetList) DeepCopy() *MachineSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetList.

func (*MachineSetList) DeepCopyInto

func (in *MachineSetList) DeepCopyInto(out *MachineSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineSetList) DeepCopyObject

func (in *MachineSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineSetSpec

type MachineSetSpec struct {
	// +optional
	Replicas int32 `json:"replicas,omitempty"`

	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// +optional
	MachineClass ClassSpec `json:"machineClass,omitempty"`

	// +optional
	Template MachineTemplateSpec `json:"template,omitempty"`

	// +optional
	MinReadySeconds int32 `json:"minReadySeconds,omitempty"`

	// +optional
	AutoPreserveFailedMachineMax int32 `json:"autoPreserveFailedMachineMax,omitempty"`
}

MachineSetSpec is the specification of a MachineSet.

func (*MachineSetSpec) DeepCopy

func (in *MachineSetSpec) DeepCopy() *MachineSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetSpec.

func (*MachineSetSpec) DeepCopyInto

func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSetStatus

type MachineSetStatus struct {
	// Replicas is the number of actual replicas.
	Replicas int32 `json:"replicas,omitempty"`

	// The number of pods that have labels matching the labels of the pod template of the replicaset.
	// +optional
	FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"`

	// The number of ready replicas for this replica set.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty"`

	// The number of available replicas (ready for at least minReadySeconds) for this replica set.
	// +optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty"`

	// PreservedFailedReplicas is the number of preserved replicas in Failed phase for this replica set
	PreservedFailedReplicas int32 `json:"preservedFailedReplicas,omitempty"`

	// ObservedGeneration is the most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Represents the latest available observations of a replica set's current state.
	// +optional
	Conditions []MachineSetCondition `json:"machineSetCondition,omitempty"`

	// LastOperation performed
	LastOperation LastOperation `json:"lastOperation,omitempty"`

	// FailedMachines has summary of machines on which lastOperation Failed
	// +optional
	FailedMachines *[]MachineSummary `json:"failedMachines,omitempty"`

	// AutoPreserveFailedMachineCount has a count of the number of failed machines in the machineset that are currently auto-preserved
	// +optional
	AutoPreserveFailedMachineCount int32 `json:"autoPreserveFailedMachineCount,omitempty"`
}

MachineSetStatus holds the most recently observed status of MachineSet.

func (*MachineSetStatus) DeepCopy

func (in *MachineSetStatus) DeepCopy() *MachineSetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetStatus.

func (*MachineSetStatus) DeepCopyInto

func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSpec

type MachineSpec struct {

	// Class contains the machineclass attributes of a machine
	// +optional
	Class ClassSpec `json:"class,omitempty"`

	// ProviderID represents the provider's unique ID given to a machine
	// +optional
	ProviderID string `json:"providerID,omitempty"`

	// NodeTemplateSpec describes the data a node should have when created from a template
	// +optional
	NodeTemplateSpec NodeTemplateSpec `json:"nodeTemplate,omitempty"`

	// Configuration for the machine-controller.
	// +optional
	*MachineConfiguration `json:",inline"`
}

MachineSpec is the specification of a Machine.

func (*MachineSpec) DeepCopy

func (in *MachineSpec) DeepCopy() *MachineSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.

func (*MachineSpec) DeepCopyInto

func (in *MachineSpec) DeepCopyInto(out *MachineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineState

type MachineState string

MachineState is a current state of the operation.

const (
	// MachineStateProcessing means operation is not yet complete
	MachineStateProcessing MachineState = "Processing"

	// MachineStateFailed means operation failed
	MachineStateFailed MachineState = "Failed"

	// MachineStateSuccessful means operation completed successfully
	MachineStateSuccessful MachineState = "Successful"
)

These are the valid states of operations performed on the machine.

type MachineStatus

type MachineStatus struct {
	// Addresses of this machines. This field is only present if the MCM provider runs without a target cluster and may
	// be used by clients to determine how to connect to the machine, instead of the `Node.status.addresses` field.
	// +optional
	Addresses []corev1.NodeAddress `json:"addresses,omitempty"`

	// Conditions of this machine, same as node
	Conditions []corev1.NodeCondition `json:"conditions,omitempty"`

	// Last operation refers to the status of the last operation performed
	LastOperation LastOperation `json:"lastOperation,omitempty"`

	// Current status of the machine object
	CurrentStatus CurrentStatus `json:"currentStatus,omitempty"`

	// LastKnownState can store details of the last known state of the VM by the plugins.
	// It can be used by future operation calls to determine current infrastucture state
	// +optional
	LastKnownState string `json:"lastKnownState,omitempty"`
}

MachineStatus holds the most recently observed status of Machine.

func (*MachineStatus) DeepCopy

func (in *MachineStatus) DeepCopy() *MachineStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.

func (*MachineStatus) DeepCopyInto

func (in *MachineStatus) DeepCopyInto(out *MachineStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSummary

type MachineSummary struct {
	// Name of the machine object
	Name string `json:"name,omitempty"`

	// ProviderID represents the provider's unique ID given to a machine
	ProviderID string `json:"providerID,omitempty"`

	// Last operation refers to the status of the last operation performed
	LastOperation LastOperation `json:"lastOperation,omitempty"`

	// OwnerRef
	OwnerRef string `json:"ownerRef,omitempty"`
}

MachineSummary store the summary of machine.

func (*MachineSummary) DeepCopy

func (in *MachineSummary) DeepCopy() *MachineSummary

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSummary.

func (*MachineSummary) DeepCopyInto

func (in *MachineSummary) DeepCopyInto(out *MachineSummary)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineTemplateSpec

type MachineTemplateSpec struct {
	// +kubebuilder:validation:XPreserveUnknownFields
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Specification of the desired behavior of the machine.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec MachineSpec `json:"spec,omitempty"`
}

MachineTemplateSpec describes the data a machine should have when created from a template

func (*MachineTemplateSpec) DeepCopy

func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.

func (*MachineTemplateSpec) DeepCopyInto

func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeTemplate added in v0.42.0

type NodeTemplate struct {

	// Capacity contains subfields to track all node resources required to scale nodegroup from zero
	Capacity corev1.ResourceList `json:"capacity"`

	// VirtualCapacity represents the expected Node 'virtual' capacity ie comprising virtual extended resources.
	// +optional
	VirtualCapacity corev1.ResourceList `json:"virtualCapacity,omitempty"`

	// Instance type of the node belonging to nodeGroup
	InstanceType string `json:"instanceType"`

	// Region of the expected node belonging to nodeGroup
	Region string `json:"region"`

	// Zone of the expected node belonging to nodeGroup
	Zone string `json:"zone"`

	// +optional
	// CPU Architecture of the node belonging to nodeGroup
	Architecture *string `json:"architecture,omitempty"`
}

NodeTemplate contains subfields to track all node resources and other node info required to scale nodegroup from zero

func (*NodeTemplate) DeepCopy added in v0.42.0

func (in *NodeTemplate) DeepCopy() *NodeTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplate.

func (*NodeTemplate) DeepCopyInto added in v0.42.0

func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeTemplateSpec

type NodeTemplateSpec struct {
	// +kubebuilder:validation:XPreserveUnknownFields
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// NodeSpec describes the attributes that a node is created with.
	// +optional
	Spec corev1.NodeSpec `json:"spec,omitempty"`
}

NodeTemplateSpec describes the data a node should have when created from a template

func (*NodeTemplateSpec) DeepCopy

func (in *NodeTemplateSpec) DeepCopy() *NodeTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateSpec.

func (*NodeTemplateSpec) DeepCopyInto

func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OrchestrationType added in v0.57.0

type OrchestrationType string

OrchestrationType specifies the orchestration type for the inplace update.

const (
	// OrchestrationTypeAuto signifies that the machines are automatically selected for update based on UpdateConfiguration.
	OrchestrationTypeAuto OrchestrationType = "Auto"
	// OrchestrationTypeManual signifies that the user has to select the machines to be updated manually.
	OrchestrationTypeManual OrchestrationType = "Manual"
)

type RollbackConfig

type RollbackConfig struct {
	// The revision to rollback to. If set to 0, rollback to the last revision.
	// +optional
	Revision int64 `json:"revision,omitempty"`
}

RollbackConfig is the config to rollback a MachineDeployment

func (*RollbackConfig) DeepCopy

func (in *RollbackConfig) DeepCopy() *RollbackConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig.

func (*RollbackConfig) DeepCopyInto

func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RollingUpdateMachineDeployment

type RollingUpdateMachineDeployment struct {
	UpdateConfiguration `json:",inline"`
}

RollingUpdateMachineDeployment is the spec to control the desired behavior of rolling update.

func (*RollingUpdateMachineDeployment) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateMachineDeployment.

func (*RollingUpdateMachineDeployment) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpdateConfiguration added in v0.57.0

type UpdateConfiguration struct {
	// The maximum number of machines that can be unavailable during the update.
	// Value can be an absolute number (ex: 5) or a percentage of desired machines (ex: 10%).
	// Absolute number is calculated from percentage by rounding down.
	// This can not be 0 if MaxSurge is 0.
	// Example: when this is set to 30%, the old machine set can be scaled down to 70% of desired machines
	// immediately when the update starts. Once new machines are ready, old machine set
	// can be scaled down further, followed by scaling up the new machine set, ensuring
	// that the total number of machines available at all times during the update is at
	// least 70% of desired machines.
	// +optional
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`

	// The maximum number of machines that can be scheduled above the desired number of
	// machines.
	// Value can be an absolute number (ex: 5) or a percentage of desired machines (ex: 10%).
	// This can not be 0 if MaxUnavailable is 0.
	// Absolute number is calculated from percentage by rounding up.
	// Example: when this is set to 30%, the new machine set can be scaled up immediately when
	// the update starts, such that the total number of old and new machines does not exceed
	// 130% of desired machines. Once old machines have been killed,
	// new machine set can be scaled up further, ensuring that total number of machines running
	// at any time during the update is utmost 130% of desired machines.
	// +optional
	MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"`
}

UpdateConfiguration specifies the udpate configuration for the deployment strategy.

func (*UpdateConfiguration) DeepCopy added in v0.57.0

func (in *UpdateConfiguration) DeepCopy() *UpdateConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfiguration.

func (*UpdateConfiguration) DeepCopyInto added in v0.57.0

func (in *UpdateConfiguration) DeepCopyInto(out *UpdateConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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