-preserveTimeout
+machinePreserveTimeout
|
@@ -1463,7 +1463,7 @@ by default, which is treated as infinite deadline.
|
-int32
+*int32
|
@@ -1940,7 +1940,7 @@ int32
|
-int32
+*int32
|
@@ -2091,7 +2091,7 @@ LastOperation
|
-int32
+*int32
|
diff --git a/kubernetes/crds/machine.sapcloud.io_machineclasses.yaml b/kubernetes/crds/machine.sapcloud.io_machineclasses.yaml
deleted file mode 100644
index f0cd9d515..000000000
--- a/kubernetes/crds/machine.sapcloud.io_machineclasses.yaml
+++ /dev/null
@@ -1,127 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.16.1
- name: machineclasses.machine.sapcloud.io
-spec:
- group: machine.sapcloud.io
- names:
- kind: MachineClass
- listKind: MachineClassList
- plural: machineclasses
- shortNames:
- - mcc
- singular: machineclass
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- description: |-
- MachineClass can be used to templatize and re-use provider configuration
- across multiple Machines / MachineSets / MachineDeployments.
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- credentialsSecretRef:
- description: |-
- 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.
- properties:
- name:
- description: name is unique within a namespace to reference a secret
- resource.
- type: string
- namespace:
- description: namespace defines the space within which the secret name
- must be unique.
- type: string
- type: object
- x-kubernetes-map-type: atomic
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- nodeTemplate:
- description: NodeTemplate contains subfields to track all node resources
- and other node info required to scale nodegroup from zero
- properties:
- architecture:
- description: CPU Architecture of the node belonging to nodeGroup
- type: string
- capacity:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: Capacity contains subfields to track all node resources
- required to scale nodegroup from zero
- type: object
- instanceType:
- description: Instance type of the node belonging to nodeGroup
- type: string
- region:
- description: Region of the expected node belonging to nodeGroup
- type: string
- virtualCapacity:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: VirtualCapacity represents the expected Node 'virtual'
- capacity ie comprising virtual extended resources.
- type: object
- zone:
- description: Zone of the expected node belonging to nodeGroup
- type: string
- required:
- - capacity
- - instanceType
- - region
- - zone
- type: object
- x-kubernetes-preserve-unknown-fields: true
- provider:
- description: Provider is the combination of name and location of cloud-specific
- drivers.
- type: string
- providerSpec:
- description: Provider-specific configuration to use during node creation.
- type: object
- x-kubernetes-preserve-unknown-fields: true
- secretRef:
- description: SecretRef stores the necessary secrets such as credentials
- or userdata.
- properties:
- name:
- description: name is unique within a namespace to reference a secret
- resource.
- type: string
- namespace:
- description: namespace defines the space within which the secret name
- must be unique.
- type: string
- type: object
- x-kubernetes-map-type: atomic
- required:
- - providerSpec
- type: object
- served: true
- storage: true
diff --git a/kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml b/kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml
deleted file mode 100644
index abb36d1c4..000000000
--- a/kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml
+++ /dev/null
@@ -1,562 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.16.1
- name: machinedeployments.machine.sapcloud.io
-spec:
- group: machine.sapcloud.io
- names:
- kind: MachineDeployment
- listKind: MachineDeploymentList
- plural: machinedeployments
- shortNames:
- - mcd
- singular: machinedeployment
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - description: Total number of ready machines targeted by this machine deployment.
- jsonPath: .status.readyReplicas
- name: Ready
- type: integer
- - description: Number of desired machines.
- jsonPath: .spec.replicas
- name: Desired
- type: integer
- - description: Total number of non-terminated machines targeted by this machine
- deployment that have the desired template spec.
- jsonPath: .status.updatedReplicas
- name: Up-to-date
- type: integer
- - description: Total number of available machines (ready for at least minReadySeconds)
- targeted by this machine deployment.
- jsonPath: .status.availableReplicas
- name: Available
- type: integer
- - description: |-
- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
- Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- name: v1alpha1
- schema:
- openAPIV3Schema:
- description: MachineDeployment enables declarative updates for machines and
- MachineSets.
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- spec:
- description: Specification of the desired behavior of the MachineDeployment.
- properties:
- autoPreserveFailedMachineMax:
- description: |-
- The maximum number of machines in the machine deployment that will 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
- format: int32
- type: integer
- minReadySeconds:
- description: |-
- 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)
- format: int32
- type: integer
- paused:
- description: |-
- Indicates that the MachineDeployment is paused and will not be processed by the
- MachineDeployment controller.
- type: boolean
- progressDeadlineSeconds:
- description: |-
- 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.
- format: int32
- type: integer
- replicas:
- description: |-
- Number of desired machines. This is a pointer to distinguish between explicit
- zero and not specified. Defaults to 0.
- format: int32
- type: integer
- revisionHistoryLimit:
- description: |-
- The number of old MachineSets to retain to allow rollback.
- This is a pointer to distinguish between explicit zero and not specified.
- format: int32
- type: integer
- rollbackTo:
- description: |-
- DEPRECATED.
- The config this MachineDeployment is rolling back to. Will be cleared after rollback is done.
- properties:
- revision:
- description: The revision to rollback to. If set to 0, rollback
- to the last revision.
- format: int64
- type: integer
- type: object
- selector:
- description: |-
- Label selector for machines. Existing MachineSets whose machines are
- selected by this will be the ones affected by this MachineDeployment.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label selector requirements.
- The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the selector applies
- to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- x-kubernetes-list-type: atomic
- required:
- - key
- - operator
- type: object
- type: array
- x-kubernetes-list-type: atomic
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- strategy:
- description: The MachineDeployment strategy to use to replace existing
- machines with new ones.
- properties:
- inPlaceUpdate:
- description: |-
- InPlaceUpdate update config params. Present only if MachineDeploymentStrategyType =
- InPlaceUpdate.
- properties:
- maxSurge:
- anyOf:
- - type: integer
- - type: string
- description: |-
- 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.
- x-kubernetes-int-or-string: true
- maxUnavailable:
- anyOf:
- - type: integer
- - type: string
- description: |-
- 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.
- x-kubernetes-int-or-string: true
- orchestrationType:
- description: OrchestrationType specifies the orchestration
- type for the inplace update.
- type: string
- type: object
- rollingUpdate:
- description: |-
- Rolling update config params. Present only if MachineDeploymentStrategyType =
- RollingUpdate.
- properties:
- maxSurge:
- anyOf:
- - type: integer
- - type: string
- description: |-
- 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.
- x-kubernetes-int-or-string: true
- maxUnavailable:
- anyOf:
- - type: integer
- - type: string
- description: |-
- 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.
- x-kubernetes-int-or-string: true
- type: object
- type:
- description: Type of MachineDeployment. Can be "Recreate" or "RollingUpdate".
- Default is RollingUpdate.
- type: string
- type: object
- template:
- description: Template describes the machines that will be created.
- properties:
- metadata:
- description: |-
- Standard object's metadata.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- type: object
- x-kubernetes-preserve-unknown-fields: true
- spec:
- description: |-
- 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
- properties:
- class:
- description: Class contains the machineclass attributes of
- a machine
- properties:
- apiGroup:
- description: API group to which it belongs
- type: string
- kind:
- description: Kind for machine class
- type: string
- name:
- description: Name of machine class
- type: string
- type: object
- creationTimeout:
- description: MachineCreationTimeout is the timeout after which
- machinie creation is declared failed.
- type: string
- disableHealthTimeout:
- description: |-
- 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.
- type: boolean
- drainTimeout:
- description: MachineDraintimeout is the timeout after which
- machine is forcefully deleted.
- type: string
- healthTimeout:
- description: MachineHealthTimeout is the timeout after which
- machine is declared unhealhty/failed.
- type: string
- inPlaceUpdateTimeout:
- description: MachineInPlaceUpdateTimeout is the timeout after
- which in-place update is declared failed.
- type: string
- machinePreserveTimeout:
- description: MachinePreserveTimeout is the timeout after which
- the machine preservation is stopped
- type: string
- maxEvictRetries:
- description: MaxEvictRetries is the number of retries that
- will be attempted while draining the node.
- format: int32
- type: integer
- nodeConditions:
- description: NodeConditions are the set of conditions if set
- to true for MachineHealthTimeOut, machine will be declared
- failed.
- type: string
- nodeTemplate:
- description: NodeTemplateSpec describes the data a node should
- have when created from a template
- properties:
- metadata:
- type: object
- x-kubernetes-preserve-unknown-fields: true
- spec:
- description: NodeSpec describes the attributes that a
- node is created with.
- properties:
- configSource:
- description: 'Deprecated: Previously used to specify
- the source of the node''s configuration for the
- DynamicKubeletConfig feature. This feature is removed.'
- properties:
- configMap:
- description: ConfigMap is a reference to a Node's
- ConfigMap
- properties:
- kubeletConfigKey:
- description: |-
- KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
- This field is required in all cases.
- type: string
- name:
- description: |-
- Name is the metadata.name of the referenced ConfigMap.
- This field is required in all cases.
- type: string
- namespace:
- description: |-
- Namespace is the metadata.namespace of the referenced ConfigMap.
- This field is required in all cases.
- type: string
- resourceVersion:
- description: |-
- ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
- This field is forbidden in Node.Spec, and required in Node.Status.
- type: string
- uid:
- description: |-
- UID is the metadata.UID of the referenced ConfigMap.
- This field is forbidden in Node.Spec, and required in Node.Status.
- type: string
- required:
- - kubeletConfigKey
- - name
- - namespace
- type: object
- type: object
- externalID:
- description: |-
- Deprecated. Not all kubelets will set this field. Remove field after 1.13.
- see: https://issues.k8s.io/61966
- type: string
- podCIDR:
- description: PodCIDR represents the pod IP range assigned
- to the node.
- type: string
- podCIDRs:
- description: |-
- podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
- field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
- each of IPv4 and IPv6.
- items:
- type: string
- type: array
- x-kubernetes-list-type: set
- providerID:
- description: 'ID of the node assigned by the cloud
- provider in the format: ://'
- type: string
- taints:
- description: If specified, the node's taints.
- items:
- description: |-
- The node this Taint is attached to has the "effect" on
- any pod that does not tolerate the Taint.
- properties:
- effect:
- description: |-
- Required. The effect of the taint on pods
- that do not tolerate the taint.
- Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
- type: string
- key:
- description: Required. The taint key to be applied
- to a node.
- type: string
- timeAdded:
- description: |-
- TimeAdded represents the time at which the taint was added.
- It is only written for NoExecute taints.
- format: date-time
- type: string
- value:
- description: The taint value corresponding to
- the taint key.
- type: string
- required:
- - effect
- - key
- type: object
- type: array
- x-kubernetes-list-type: atomic
- unschedulable:
- description: |-
- Unschedulable controls node schedulability of new pods. By default, node is schedulable.
- More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
- type: boolean
- type: object
- type: object
- providerID:
- description: ProviderID represents the provider's unique ID
- given to a machine
- type: string
- type: object
- type: object
- required:
- - template
- type: object
- status:
- description: Most recently observed status of the MachineDeployment.
- properties:
- availableReplicas:
- description: Total number of available machines (ready for at least
- minReadySeconds) targeted by this MachineDeployment.
- format: int32
- type: integer
- collisionCount:
- description: |-
- 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.
- format: int32
- type: integer
- conditions:
- description: Represents the latest available observations of a MachineDeployment's
- current state.
- items:
- description: MachineDeploymentCondition describes the state of a
- MachineDeployment at a certain point.
- properties:
- lastTransitionTime:
- description: Last time the condition transitioned from one status
- to another.
- format: date-time
- type: string
- lastUpdateTime:
- description: The last time this condition was updated.
- format: date-time
- type: string
- message:
- description: A human readable message indicating details about
- the transition.
- type: string
- reason:
- description: The reason for the condition's last transition.
- type: string
- status:
- description: Status of the condition, one of True, False, Unknown.
- type: string
- type:
- description: Type of MachineDeployment condition.
- type: string
- required:
- - status
- - type
- type: object
- type: array
- failedMachines:
- description: FailedMachines has summary of machines on which lastOperation
- Failed
- items:
- description: MachineSummary store the summary of machine.
- properties:
- lastOperation:
- description: Last operation refers to the status of the last
- operation performed
- properties:
- description:
- description: Description of the current operation
- type: string
- errorCode:
- description: ErrorCode of the current operation if any
- type: string
- lastUpdateTime:
- description: Last update time of current operation
- format: date-time
- type: string
- state:
- description: State of operation
- type: string
- type:
- description: Type of operation
- type: string
- type: object
- name:
- description: Name of the machine object
- type: string
- ownerRef:
- description: OwnerRef
- type: string
- providerID:
- description: ProviderID represents the provider's unique ID
- given to a machine
- type: string
- type: object
- type: array
- observedGeneration:
- description: The generation observed by the MachineDeployment controller.
- format: int64
- type: integer
- readyReplicas:
- description: Total number of ready machines targeted by this MachineDeployment.
- format: int32
- type: integer
- replicas:
- description: Total number of non-terminated machines targeted by this
- MachineDeployment (their labels match the selector).
- format: int32
- type: integer
- unavailableReplicas:
- description: |-
- 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 or machines that still have not been created.
- format: int32
- type: integer
- updatedReplicas:
- description: Total number of non-terminated machines targeted by this
- MachineDeployment that have the desired template spec.
- format: int32
- type: integer
- type: object
- type: object
- served: true
- storage: true
- subresources:
- scale:
- specReplicasPath: .spec.replicas
- statusReplicasPath: .status.replicas
- status: {}
diff --git a/kubernetes/crds/machine.sapcloud.io_machines.yaml b/kubernetes/crds/machine.sapcloud.io_machines.yaml
deleted file mode 100644
index fcea16750..000000000
--- a/kubernetes/crds/machine.sapcloud.io_machines.yaml
+++ /dev/null
@@ -1,333 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.16.1
- name: machines.machine.sapcloud.io
-spec:
- group: machine.sapcloud.io
- names:
- kind: Machine
- listKind: MachineList
- plural: machines
- shortNames:
- - mc
- singular: machine
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - description: Current status of the machine.
- jsonPath: .status.currentStatus.phase
- name: Status
- type: string
- - description: |-
- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
- Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- - description: Node backing the machine object
- jsonPath: .metadata.labels.node
- name: Node
- type: string
- - description: ProviderID of the infra instance backing the machine object
- jsonPath: .spec.providerID
- name: ProviderID
- priority: 1
- type: string
- name: v1alpha1
- schema:
- openAPIV3Schema:
- description: Machine is the representation of a physical or virtual machine.
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- spec:
- description: Spec contains the specification of the machine
- properties:
- class:
- description: Class contains the machineclass attributes of a machine
- properties:
- apiGroup:
- description: API group to which it belongs
- type: string
- kind:
- description: Kind for machine class
- type: string
- name:
- description: Name of machine class
- type: string
- type: object
- creationTimeout:
- description: MachineCreationTimeout is the timeout after which machinie
- creation is declared failed.
- type: string
- disableHealthTimeout:
- description: |-
- 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.
- type: boolean
- drainTimeout:
- description: MachineDraintimeout is the timeout after which machine
- is forcefully deleted.
- type: string
- healthTimeout:
- description: MachineHealthTimeout is the timeout after which machine
- is declared unhealhty/failed.
- type: string
- inPlaceUpdateTimeout:
- description: MachineInPlaceUpdateTimeout is the timeout after which
- in-place update is declared failed.
- type: string
- machinePreserveTimeout:
- description: MachinePreserveTimeout is the timeout after which the
- machine preservation is stopped
- type: string
- maxEvictRetries:
- description: MaxEvictRetries is the number of retries that will be
- attempted while draining the node.
- format: int32
- type: integer
- nodeConditions:
- description: NodeConditions are the set of conditions if set to true
- for MachineHealthTimeOut, machine will be declared failed.
- type: string
- nodeTemplate:
- description: NodeTemplateSpec describes the data a node should have
- when created from a template
- properties:
- metadata:
- type: object
- x-kubernetes-preserve-unknown-fields: true
- spec:
- description: NodeSpec describes the attributes that a node is
- created with.
- properties:
- configSource:
- description: 'Deprecated: Previously used to specify the source
- of the node''s configuration for the DynamicKubeletConfig
- feature. This feature is removed.'
- properties:
- configMap:
- description: ConfigMap is a reference to a Node's ConfigMap
- properties:
- kubeletConfigKey:
- description: |-
- KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
- This field is required in all cases.
- type: string
- name:
- description: |-
- Name is the metadata.name of the referenced ConfigMap.
- This field is required in all cases.
- type: string
- namespace:
- description: |-
- Namespace is the metadata.namespace of the referenced ConfigMap.
- This field is required in all cases.
- type: string
- resourceVersion:
- description: |-
- ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
- This field is forbidden in Node.Spec, and required in Node.Status.
- type: string
- uid:
- description: |-
- UID is the metadata.UID of the referenced ConfigMap.
- This field is forbidden in Node.Spec, and required in Node.Status.
- type: string
- required:
- - kubeletConfigKey
- - name
- - namespace
- type: object
- type: object
- externalID:
- description: |-
- Deprecated. Not all kubelets will set this field. Remove field after 1.13.
- see: https://issues.k8s.io/61966
- type: string
- podCIDR:
- description: PodCIDR represents the pod IP range assigned
- to the node.
- type: string
- podCIDRs:
- description: |-
- podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
- field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
- each of IPv4 and IPv6.
- items:
- type: string
- type: array
- x-kubernetes-list-type: set
- providerID:
- description: 'ID of the node assigned by the cloud provider
- in the format: ://'
- type: string
- taints:
- description: If specified, the node's taints.
- items:
- description: |-
- The node this Taint is attached to has the "effect" on
- any pod that does not tolerate the Taint.
- properties:
- effect:
- description: |-
- Required. The effect of the taint on pods
- that do not tolerate the taint.
- Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
- type: string
- key:
- description: Required. The taint key to be applied to
- a node.
- type: string
- timeAdded:
- description: |-
- TimeAdded represents the time at which the taint was added.
- It is only written for NoExecute taints.
- format: date-time
- type: string
- value:
- description: The taint value corresponding to the taint
- key.
- type: string
- required:
- - effect
- - key
- type: object
- type: array
- x-kubernetes-list-type: atomic
- unschedulable:
- description: |-
- Unschedulable controls node schedulability of new pods. By default, node is schedulable.
- More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
- type: boolean
- type: object
- type: object
- providerID:
- description: ProviderID represents the provider's unique ID given
- to a machine
- type: string
- type: object
- status:
- description: Status contains fields depicting the status
- properties:
- addresses:
- description: |-
- 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.
- items:
- description: NodeAddress contains information for the node's address.
- properties:
- address:
- description: The node address.
- type: string
- type:
- description: Node address type, one of Hostname, ExternalIP
- or InternalIP.
- type: string
- required:
- - address
- - type
- type: object
- type: array
- conditions:
- description: Conditions of this machine, same as node
- items:
- description: NodeCondition contains condition information for a
- node.
- properties:
- lastHeartbeatTime:
- description: Last time we got an update on a given condition.
- format: date-time
- type: string
- lastTransitionTime:
- description: Last time the condition transit from one status
- to another.
- format: date-time
- type: string
- message:
- description: Human readable message indicating details about
- last transition.
- type: string
- reason:
- description: (brief) reason for the condition's last transition.
- type: string
- status:
- description: Status of the condition, one of True, False, Unknown.
- type: string
- type:
- description: Type of node condition.
- type: string
- required:
- - status
- - type
- type: object
- type: array
- currentStatus:
- description: Current status of the machine object
- properties:
- lastUpdateTime:
- description: Last update time of current status
- format: date-time
- type: string
- phase:
- description: MachinePhase is a label for the condition of a machine
- at the current time.
- type: string
- preserveExpiryTime:
- description: PreserveExpiryTime is the time at which MCM will
- stop preserving the machine
- format: date-time
- type: string
- timeoutActive:
- type: boolean
- type: object
- lastKnownState:
- description: |-
- 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
- type: string
- lastOperation:
- description: Last operation refers to the status of the last operation
- performed
- properties:
- description:
- description: Description of the current operation
- type: string
- errorCode:
- description: ErrorCode of the current operation if any
- type: string
- lastUpdateTime:
- description: Last update time of current operation
- format: date-time
- type: string
- state:
- description: State of operation
- type: string
- type:
- description: Type of operation
- type: string
- type: object
- type: object
- type: object
- served: true
- storage: true
- subresources:
- status: {}
diff --git a/kubernetes/crds/machine.sapcloud.io_machinesets.yaml b/kubernetes/crds/machine.sapcloud.io_machinesets.yaml
deleted file mode 100644
index 46445131f..000000000
--- a/kubernetes/crds/machine.sapcloud.io_machinesets.yaml
+++ /dev/null
@@ -1,447 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.16.1
- name: machinesets.machine.sapcloud.io
-spec:
- group: machine.sapcloud.io
- names:
- kind: MachineSet
- listKind: MachineSetList
- plural: machinesets
- shortNames:
- - mcs
- singular: machineset
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - description: Number of desired replicas.
- jsonPath: .spec.replicas
- name: Desired
- type: integer
- - description: Number of actual replicas.
- jsonPath: .status.replicas
- name: Current
- type: integer
- - description: Number of ready replicas for this machine set.
- jsonPath: .status.readyReplicas
- name: Ready
- type: integer
- - description: |-
- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
- Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- name: v1alpha1
- schema:
- openAPIV3Schema:
- description: MachineSet TODO
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- spec:
- description: MachineSetSpec is the specification of a MachineSet.
- properties:
- autoPreserveFailedMachineMax:
- format: int32
- type: integer
- machineClass:
- description: ClassSpec is the class specification of machine
- properties:
- apiGroup:
- description: API group to which it belongs
- type: string
- kind:
- description: Kind for machine class
- type: string
- name:
- description: Name of machine class
- type: string
- type: object
- minReadySeconds:
- format: int32
- type: integer
- replicas:
- format: int32
- type: integer
- selector:
- description: |-
- A label selector is a label query over a set of resources. The result of matchLabels and
- matchExpressions are ANDed. An empty label selector matches all objects. A null
- label selector matches no objects.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label selector requirements.
- The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the selector applies
- to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- x-kubernetes-list-type: atomic
- required:
- - key
- - operator
- type: object
- type: array
- x-kubernetes-list-type: atomic
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- template:
- description: MachineTemplateSpec describes the data a machine should
- have when created from a template
- properties:
- metadata:
- description: |-
- Standard object's metadata.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- type: object
- x-kubernetes-preserve-unknown-fields: true
- spec:
- description: |-
- 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
- properties:
- class:
- description: Class contains the machineclass attributes of
- a machine
- properties:
- apiGroup:
- description: API group to which it belongs
- type: string
- kind:
- description: Kind for machine class
- type: string
- name:
- description: Name of machine class
- type: string
- type: object
- creationTimeout:
- description: MachineCreationTimeout is the timeout after which
- machinie creation is declared failed.
- type: string
- disableHealthTimeout:
- description: |-
- 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.
- type: boolean
- drainTimeout:
- description: MachineDraintimeout is the timeout after which
- machine is forcefully deleted.
- type: string
- healthTimeout:
- description: MachineHealthTimeout is the timeout after which
- machine is declared unhealhty/failed.
- type: string
- inPlaceUpdateTimeout:
- description: MachineInPlaceUpdateTimeout is the timeout after
- which in-place update is declared failed.
- type: string
- machinePreserveTimeout:
- description: MachinePreserveTimeout is the timeout after which
- the machine preservation is stopped
- type: string
- maxEvictRetries:
- description: MaxEvictRetries is the number of retries that
- will be attempted while draining the node.
- format: int32
- type: integer
- nodeConditions:
- description: NodeConditions are the set of conditions if set
- to true for MachineHealthTimeOut, machine will be declared
- failed.
- type: string
- nodeTemplate:
- description: NodeTemplateSpec describes the data a node should
- have when created from a template
- properties:
- metadata:
- type: object
- x-kubernetes-preserve-unknown-fields: true
- spec:
- description: NodeSpec describes the attributes that a
- node is created with.
- properties:
- configSource:
- description: 'Deprecated: Previously used to specify
- the source of the node''s configuration for the
- DynamicKubeletConfig feature. This feature is removed.'
- properties:
- configMap:
- description: ConfigMap is a reference to a Node's
- ConfigMap
- properties:
- kubeletConfigKey:
- description: |-
- KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
- This field is required in all cases.
- type: string
- name:
- description: |-
- Name is the metadata.name of the referenced ConfigMap.
- This field is required in all cases.
- type: string
- namespace:
- description: |-
- Namespace is the metadata.namespace of the referenced ConfigMap.
- This field is required in all cases.
- type: string
- resourceVersion:
- description: |-
- ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
- This field is forbidden in Node.Spec, and required in Node.Status.
- type: string
- uid:
- description: |-
- UID is the metadata.UID of the referenced ConfigMap.
- This field is forbidden in Node.Spec, and required in Node.Status.
- type: string
- required:
- - kubeletConfigKey
- - name
- - namespace
- type: object
- type: object
- externalID:
- description: |-
- Deprecated. Not all kubelets will set this field. Remove field after 1.13.
- see: https://issues.k8s.io/61966
- type: string
- podCIDR:
- description: PodCIDR represents the pod IP range assigned
- to the node.
- type: string
- podCIDRs:
- description: |-
- podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
- field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
- each of IPv4 and IPv6.
- items:
- type: string
- type: array
- x-kubernetes-list-type: set
- providerID:
- description: 'ID of the node assigned by the cloud
- provider in the format: ://'
- type: string
- taints:
- description: If specified, the node's taints.
- items:
- description: |-
- The node this Taint is attached to has the "effect" on
- any pod that does not tolerate the Taint.
- properties:
- effect:
- description: |-
- Required. The effect of the taint on pods
- that do not tolerate the taint.
- Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
- type: string
- key:
- description: Required. The taint key to be applied
- to a node.
- type: string
- timeAdded:
- description: |-
- TimeAdded represents the time at which the taint was added.
- It is only written for NoExecute taints.
- format: date-time
- type: string
- value:
- description: The taint value corresponding to
- the taint key.
- type: string
- required:
- - effect
- - key
- type: object
- type: array
- x-kubernetes-list-type: atomic
- unschedulable:
- description: |-
- Unschedulable controls node schedulability of new pods. By default, node is schedulable.
- More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
- type: boolean
- type: object
- type: object
- providerID:
- description: ProviderID represents the provider's unique ID
- given to a machine
- type: string
- type: object
- type: object
- type: object
- status:
- description: MachineSetStatus holds the most recently observed status
- of MachineSet.
- properties:
- autoPreserveFailedMachineCount:
- description: AutoPreserveFailedMachineCount has a count of the number
- of failed machines in the machineset that have been auto-preserved
- format: int32
- type: integer
- availableReplicas:
- description: The number of available replicas (ready for at least
- minReadySeconds) for this replica set.
- format: int32
- type: integer
- failedMachines:
- description: FailedMachines has summary of machines on which lastOperation
- Failed
- items:
- description: MachineSummary store the summary of machine.
- properties:
- lastOperation:
- description: Last operation refers to the status of the last
- operation performed
- properties:
- description:
- description: Description of the current operation
- type: string
- errorCode:
- description: ErrorCode of the current operation if any
- type: string
- lastUpdateTime:
- description: Last update time of current operation
- format: date-time
- type: string
- state:
- description: State of operation
- type: string
- type:
- description: Type of operation
- type: string
- type: object
- name:
- description: Name of the machine object
- type: string
- ownerRef:
- description: OwnerRef
- type: string
- providerID:
- description: ProviderID represents the provider's unique ID
- given to a machine
- type: string
- type: object
- type: array
- fullyLabeledReplicas:
- description: The number of pods that have labels matching the labels
- of the pod template of the replicaset.
- format: int32
- type: integer
- lastOperation:
- description: LastOperation performed
- properties:
- description:
- description: Description of the current operation
- type: string
- errorCode:
- description: ErrorCode of the current operation if any
- type: string
- lastUpdateTime:
- description: Last update time of current operation
- format: date-time
- type: string
- state:
- description: State of operation
- type: string
- type:
- description: Type of operation
- type: string
- type: object
- machineSetCondition:
- description: Represents the latest available observations of a replica
- set's current state.
- items:
- description: MachineSetCondition describes the state of a machine
- set at a certain point.
- properties:
- lastTransitionTime:
- description: The last time the condition transitioned from one
- status to another.
- format: date-time
- type: string
- message:
- description: A human readable message indicating details about
- the transition.
- type: string
- reason:
- description: The reason for the condition's last transition.
- type: string
- status:
- description: Status of the condition, one of True, False, Unknown.
- type: string
- type:
- description: Type of machine set condition.
- type: string
- required:
- - status
- - type
- type: object
- type: array
- observedGeneration:
- description: ObservedGeneration is the most recent generation observed
- by the controller.
- format: int64
- type: integer
- readyReplicas:
- description: The number of ready replicas for this replica set.
- format: int32
- type: integer
- replicas:
- description: Replicas is the number of actual replicas.
- format: int32
- type: integer
- type: object
- type: object
- served: true
- storage: true
- subresources:
- scale:
- specReplicasPath: .spec.replicas
- statusReplicasPath: .status.replicas
- status: {}
diff --git a/pkg/apis/machine/types.go b/pkg/apis/machine/types.go
index c2e535bf7..d9ae90a19 100644
--- a/pkg/apis/machine/types.go
+++ b/pkg/apis/machine/types.go
@@ -162,7 +162,7 @@ type CurrentStatus struct {
LastUpdateTime metav1.Time
// PreserveExpiryTime is the time at which MCM will stop preserving the machine
- PreserveExpiryTime metav1.Time
+ PreserveExpiryTime *metav1.Time
}
// MachineStatus holds the most recently observed status of Machine.
@@ -357,7 +357,7 @@ type MachineSetSpec struct {
MinReadySeconds int32
- AutoPreserveFailedMachineMax int32
+ AutoPreserveFailedMachineMax *int32
}
// MachineSetConditionType is the condition on machineset object
@@ -418,7 +418,7 @@ type MachineSetStatus struct {
FailedMachines *[]MachineSummary
// AutoPreserveFailedMachineCount has a count of the number of failed machines in the machineset that have been auto-preserved
- AutoPreserveFailedMachineCount int32
+ AutoPreserveFailedMachineCount *int32
}
// MachineSummary store the summary of machine.
@@ -500,7 +500,7 @@ type MachineDeploymentSpec struct {
// The maximum number of machines in the machine deployment that will 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
- AutoPreserveFailedMachineMax int32
+ AutoPreserveFailedMachineMax *int32
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
diff --git a/pkg/apis/machine/v1alpha1/machine_types.go b/pkg/apis/machine/v1alpha1/machine_types.go
index 654256d32..3744534f3 100644
--- a/pkg/apis/machine/v1alpha1/machine_types.go
+++ b/pkg/apis/machine/v1alpha1/machine_types.go
@@ -274,7 +274,7 @@ type CurrentStatus struct {
LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
// PreserveExpiryTime is the time at which MCM will stop preserving the machine
- PreserveExpiryTime metav1.Time `json:"preserveExpiryTime,omitempty"`
+ PreserveExpiryTime *metav1.Time `json:"preserveExpiryTime,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
diff --git a/pkg/apis/machine/v1alpha1/machinedeployment_types.go b/pkg/apis/machine/v1alpha1/machinedeployment_types.go
index 6cebcd1a1..3fc6487f7 100644
--- a/pkg/apis/machine/v1alpha1/machinedeployment_types.go
+++ b/pkg/apis/machine/v1alpha1/machinedeployment_types.go
@@ -95,7 +95,7 @@ type MachineDeploymentSpec struct {
// The maximum number of machines in the machine deployment that will 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"`
+ AutoPreserveFailedMachineMax *int32 `json:"autoPreserveFailedMachineMax,omitempty"`
}
const (
diff --git a/pkg/apis/machine/v1alpha1/machineset_types.go b/pkg/apis/machine/v1alpha1/machineset_types.go
index 8cd73d58e..2e6d24bd7 100644
--- a/pkg/apis/machine/v1alpha1/machineset_types.go
+++ b/pkg/apis/machine/v1alpha1/machineset_types.go
@@ -70,7 +70,7 @@ type MachineSetSpec struct {
MinReadySeconds int32 `json:"minReadySeconds,omitempty"`
// +optional
- AutoPreserveFailedMachineMax int32 `json:"autoPreserveFailedMachineMax,omitempty"`
+ AutoPreserveFailedMachineMax *int32 `json:"autoPreserveFailedMachineMax,omitempty"`
}
// MachineSetConditionType is the condition on machineset object
@@ -141,5 +141,5 @@ type MachineSetStatus struct {
// AutoPreserveFailedMachineCount has a count of the number of failed machines in the machineset that have been auto-preserved
// +optional
- AutoPreserveFailedMachineCount int32 `json:"autoPreserveFailedMachineCount,omitempty"`
+ AutoPreserveFailedMachineCount *int32 `json:"autoPreserveFailedMachineCount,omitempty"`
}
diff --git a/pkg/apis/machine/v1alpha1/zz_generated.conversion.go b/pkg/apis/machine/v1alpha1/zz_generated.conversion.go
deleted file mode 100644
index 1990c2f03..000000000
--- a/pkg/apis/machine/v1alpha1/zz_generated.conversion.go
+++ /dev/null
@@ -1,1179 +0,0 @@
-//go:build !ignore_autogenerated
-// +build !ignore_autogenerated
-
-// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
-//
-// SPDX-License-Identifier: Apache-2.0
-
-// Code generated by conversion-gen. DO NOT EDIT.
-
-package v1alpha1
-
-import (
- unsafe "unsafe"
-
- machine "github.com/gardener/machine-controller-manager/pkg/apis/machine"
- v1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- conversion "k8s.io/apimachinery/pkg/conversion"
- runtime "k8s.io/apimachinery/pkg/runtime"
- intstr "k8s.io/apimachinery/pkg/util/intstr"
-)
-
-func init() {
- localSchemeBuilder.Register(RegisterConversions)
-}
-
-// RegisterConversions adds conversion functions to the given scheme.
-// Public to allow building arbitrary schemes.
-func RegisterConversions(s *runtime.Scheme) error {
- if err := s.AddGeneratedConversionFunc((*ClassSpec)(nil), (*machine.ClassSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(a.(*ClassSpec), b.(*machine.ClassSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.ClassSpec)(nil), (*ClassSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(a.(*machine.ClassSpec), b.(*ClassSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*CurrentStatus)(nil), (*machine.CurrentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(a.(*CurrentStatus), b.(*machine.CurrentStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.CurrentStatus)(nil), (*CurrentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(a.(*machine.CurrentStatus), b.(*CurrentStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*InPlaceUpdateMachineDeployment)(nil), (*machine.InPlaceUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(a.(*InPlaceUpdateMachineDeployment), b.(*machine.InPlaceUpdateMachineDeployment), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.InPlaceUpdateMachineDeployment)(nil), (*InPlaceUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(a.(*machine.InPlaceUpdateMachineDeployment), b.(*InPlaceUpdateMachineDeployment), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*LastOperation)(nil), (*machine.LastOperation)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LastOperation_To_machine_LastOperation(a.(*LastOperation), b.(*machine.LastOperation), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.LastOperation)(nil), (*LastOperation)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_LastOperation_To_v1alpha1_LastOperation(a.(*machine.LastOperation), b.(*LastOperation), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*Machine)(nil), (*machine.Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_Machine_To_machine_Machine(a.(*Machine), b.(*machine.Machine), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.Machine)(nil), (*Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_Machine_To_v1alpha1_Machine(a.(*machine.Machine), b.(*Machine), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineClass)(nil), (*machine.MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineClass_To_machine_MachineClass(a.(*MachineClass), b.(*machine.MachineClass), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineClass)(nil), (*MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineClass_To_v1alpha1_MachineClass(a.(*machine.MachineClass), b.(*MachineClass), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineClassList)(nil), (*machine.MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineClassList_To_machine_MachineClassList(a.(*MachineClassList), b.(*machine.MachineClassList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineClassList)(nil), (*MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineClassList_To_v1alpha1_MachineClassList(a.(*machine.MachineClassList), b.(*MachineClassList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineConfiguration)(nil), (*machine.MachineConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(a.(*MachineConfiguration), b.(*machine.MachineConfiguration), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineConfiguration)(nil), (*MachineConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(a.(*machine.MachineConfiguration), b.(*MachineConfiguration), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineDeployment)(nil), (*machine.MachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(a.(*MachineDeployment), b.(*machine.MachineDeployment), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineDeployment)(nil), (*MachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(a.(*machine.MachineDeployment), b.(*MachineDeployment), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineDeploymentCondition)(nil), (*machine.MachineDeploymentCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(a.(*MachineDeploymentCondition), b.(*machine.MachineDeploymentCondition), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentCondition)(nil), (*MachineDeploymentCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(a.(*machine.MachineDeploymentCondition), b.(*MachineDeploymentCondition), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineDeploymentList)(nil), (*machine.MachineDeploymentList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(a.(*MachineDeploymentList), b.(*machine.MachineDeploymentList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentList)(nil), (*MachineDeploymentList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(a.(*machine.MachineDeploymentList), b.(*MachineDeploymentList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineDeploymentSpec)(nil), (*machine.MachineDeploymentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(a.(*MachineDeploymentSpec), b.(*machine.MachineDeploymentSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentSpec)(nil), (*MachineDeploymentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(a.(*machine.MachineDeploymentSpec), b.(*MachineDeploymentSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineDeploymentStatus)(nil), (*machine.MachineDeploymentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(a.(*MachineDeploymentStatus), b.(*machine.MachineDeploymentStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentStatus)(nil), (*MachineDeploymentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(a.(*machine.MachineDeploymentStatus), b.(*MachineDeploymentStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineDeploymentStrategy)(nil), (*machine.MachineDeploymentStrategy)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(a.(*MachineDeploymentStrategy), b.(*machine.MachineDeploymentStrategy), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentStrategy)(nil), (*MachineDeploymentStrategy)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(a.(*machine.MachineDeploymentStrategy), b.(*MachineDeploymentStrategy), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineList)(nil), (*machine.MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineList_To_machine_MachineList(a.(*MachineList), b.(*machine.MachineList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineList)(nil), (*MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineList_To_v1alpha1_MachineList(a.(*machine.MachineList), b.(*MachineList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSet)(nil), (*machine.MachineSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSet_To_machine_MachineSet(a.(*MachineSet), b.(*machine.MachineSet), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSet)(nil), (*MachineSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSet_To_v1alpha1_MachineSet(a.(*machine.MachineSet), b.(*MachineSet), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSetCondition)(nil), (*machine.MachineSetCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(a.(*MachineSetCondition), b.(*machine.MachineSetCondition), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSetCondition)(nil), (*MachineSetCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(a.(*machine.MachineSetCondition), b.(*MachineSetCondition), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSetList)(nil), (*machine.MachineSetList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSetList_To_machine_MachineSetList(a.(*MachineSetList), b.(*machine.MachineSetList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSetList)(nil), (*MachineSetList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSetList_To_v1alpha1_MachineSetList(a.(*machine.MachineSetList), b.(*MachineSetList), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSetSpec)(nil), (*machine.MachineSetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(a.(*MachineSetSpec), b.(*machine.MachineSetSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSetSpec)(nil), (*MachineSetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(a.(*machine.MachineSetSpec), b.(*MachineSetSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSetStatus)(nil), (*machine.MachineSetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(a.(*MachineSetStatus), b.(*machine.MachineSetStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSetStatus)(nil), (*MachineSetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(a.(*machine.MachineSetStatus), b.(*MachineSetStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSpec)(nil), (*machine.MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(a.(*MachineSpec), b.(*machine.MachineSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSpec)(nil), (*MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(a.(*machine.MachineSpec), b.(*MachineSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineStatus)(nil), (*machine.MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(a.(*MachineStatus), b.(*machine.MachineStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineStatus)(nil), (*MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(a.(*machine.MachineStatus), b.(*MachineStatus), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineSummary)(nil), (*machine.MachineSummary)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSummary_To_machine_MachineSummary(a.(*MachineSummary), b.(*machine.MachineSummary), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineSummary)(nil), (*MachineSummary)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineSummary_To_v1alpha1_MachineSummary(a.(*machine.MachineSummary), b.(*MachineSummary), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*MachineTemplateSpec)(nil), (*machine.MachineTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(a.(*MachineTemplateSpec), b.(*machine.MachineTemplateSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.MachineTemplateSpec)(nil), (*MachineTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(a.(*machine.MachineTemplateSpec), b.(*MachineTemplateSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*NodeTemplate)(nil), (*machine.NodeTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(a.(*NodeTemplate), b.(*machine.NodeTemplate), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.NodeTemplate)(nil), (*NodeTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(a.(*machine.NodeTemplate), b.(*NodeTemplate), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*NodeTemplateSpec)(nil), (*machine.NodeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(a.(*NodeTemplateSpec), b.(*machine.NodeTemplateSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.NodeTemplateSpec)(nil), (*NodeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(a.(*machine.NodeTemplateSpec), b.(*NodeTemplateSpec), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*RollbackConfig)(nil), (*machine.RollbackConfig)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(a.(*RollbackConfig), b.(*machine.RollbackConfig), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.RollbackConfig)(nil), (*RollbackConfig)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(a.(*machine.RollbackConfig), b.(*RollbackConfig), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*RollingUpdateMachineDeployment)(nil), (*machine.RollingUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(a.(*RollingUpdateMachineDeployment), b.(*machine.RollingUpdateMachineDeployment), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.RollingUpdateMachineDeployment)(nil), (*RollingUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(a.(*machine.RollingUpdateMachineDeployment), b.(*RollingUpdateMachineDeployment), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*UpdateConfiguration)(nil), (*machine.UpdateConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(a.(*UpdateConfiguration), b.(*machine.UpdateConfiguration), scope)
- }); err != nil {
- return err
- }
- if err := s.AddGeneratedConversionFunc((*machine.UpdateConfiguration)(nil), (*UpdateConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(a.(*machine.UpdateConfiguration), b.(*UpdateConfiguration), scope)
- }); err != nil {
- return err
- }
- return nil
-}
-
-func autoConvert_v1alpha1_ClassSpec_To_machine_ClassSpec(in *ClassSpec, out *machine.ClassSpec, s conversion.Scope) error {
- out.APIGroup = in.APIGroup
- out.Kind = in.Kind
- out.Name = in.Name
- return nil
-}
-
-// Convert_v1alpha1_ClassSpec_To_machine_ClassSpec is an autogenerated conversion function.
-func Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(in *ClassSpec, out *machine.ClassSpec, s conversion.Scope) error {
- return autoConvert_v1alpha1_ClassSpec_To_machine_ClassSpec(in, out, s)
-}
-
-func autoConvert_machine_ClassSpec_To_v1alpha1_ClassSpec(in *machine.ClassSpec, out *ClassSpec, s conversion.Scope) error {
- out.APIGroup = in.APIGroup
- out.Kind = in.Kind
- out.Name = in.Name
- return nil
-}
-
-// Convert_machine_ClassSpec_To_v1alpha1_ClassSpec is an autogenerated conversion function.
-func Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(in *machine.ClassSpec, out *ClassSpec, s conversion.Scope) error {
- return autoConvert_machine_ClassSpec_To_v1alpha1_ClassSpec(in, out, s)
-}
-
-func autoConvert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in *CurrentStatus, out *machine.CurrentStatus, s conversion.Scope) error {
- out.Phase = machine.MachinePhase(in.Phase)
- out.TimeoutActive = in.TimeoutActive
- out.LastUpdateTime = in.LastUpdateTime
- out.PreserveExpiryTime = in.PreserveExpiryTime
- return nil
-}
-
-// Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus is an autogenerated conversion function.
-func Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in *CurrentStatus, out *machine.CurrentStatus, s conversion.Scope) error {
- return autoConvert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in, out, s)
-}
-
-func autoConvert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in *machine.CurrentStatus, out *CurrentStatus, s conversion.Scope) error {
- out.Phase = MachinePhase(in.Phase)
- out.TimeoutActive = in.TimeoutActive
- out.LastUpdateTime = in.LastUpdateTime
- out.PreserveExpiryTime = in.PreserveExpiryTime
- return nil
-}
-
-// Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus is an autogenerated conversion function.
-func Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in *machine.CurrentStatus, out *CurrentStatus, s conversion.Scope) error {
- return autoConvert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in, out, s)
-}
-
-func autoConvert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in *InPlaceUpdateMachineDeployment, out *machine.InPlaceUpdateMachineDeployment, s conversion.Scope) error {
- if err := Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
- return err
- }
- out.OrchestrationType = machine.OrchestrationType(in.OrchestrationType)
- return nil
-}
-
-// Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment is an autogenerated conversion function.
-func Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in *InPlaceUpdateMachineDeployment, out *machine.InPlaceUpdateMachineDeployment, s conversion.Scope) error {
- return autoConvert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in, out, s)
-}
-
-func autoConvert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in *machine.InPlaceUpdateMachineDeployment, out *InPlaceUpdateMachineDeployment, s conversion.Scope) error {
- if err := Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
- return err
- }
- out.OrchestrationType = OrchestrationType(in.OrchestrationType)
- return nil
-}
-
-// Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment is an autogenerated conversion function.
-func Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in *machine.InPlaceUpdateMachineDeployment, out *InPlaceUpdateMachineDeployment, s conversion.Scope) error {
- return autoConvert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in, out, s)
-}
-
-func autoConvert_v1alpha1_LastOperation_To_machine_LastOperation(in *LastOperation, out *machine.LastOperation, s conversion.Scope) error {
- out.Description = in.Description
- out.ErrorCode = in.ErrorCode
- out.LastUpdateTime = in.LastUpdateTime
- out.State = machine.MachineState(in.State)
- out.Type = machine.MachineOperationType(in.Type)
- return nil
-}
-
-// Convert_v1alpha1_LastOperation_To_machine_LastOperation is an autogenerated conversion function.
-func Convert_v1alpha1_LastOperation_To_machine_LastOperation(in *LastOperation, out *machine.LastOperation, s conversion.Scope) error {
- return autoConvert_v1alpha1_LastOperation_To_machine_LastOperation(in, out, s)
-}
-
-func autoConvert_machine_LastOperation_To_v1alpha1_LastOperation(in *machine.LastOperation, out *LastOperation, s conversion.Scope) error {
- out.Description = in.Description
- out.ErrorCode = in.ErrorCode
- out.LastUpdateTime = in.LastUpdateTime
- out.State = MachineState(in.State)
- out.Type = MachineOperationType(in.Type)
- return nil
-}
-
-// Convert_machine_LastOperation_To_v1alpha1_LastOperation is an autogenerated conversion function.
-func Convert_machine_LastOperation_To_v1alpha1_LastOperation(in *machine.LastOperation, out *LastOperation, s conversion.Scope) error {
- return autoConvert_machine_LastOperation_To_v1alpha1_LastOperation(in, out, s)
-}
-
-func autoConvert_v1alpha1_Machine_To_machine_Machine(in *Machine, out *machine.Machine, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- if err := Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(&in.Status, &out.Status, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_v1alpha1_Machine_To_machine_Machine is an autogenerated conversion function.
-func Convert_v1alpha1_Machine_To_machine_Machine(in *Machine, out *machine.Machine, s conversion.Scope) error {
- return autoConvert_v1alpha1_Machine_To_machine_Machine(in, out, s)
-}
-
-func autoConvert_machine_Machine_To_v1alpha1_Machine(in *machine.Machine, out *Machine, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- if err := Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(&in.Status, &out.Status, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_machine_Machine_To_v1alpha1_Machine is an autogenerated conversion function.
-func Convert_machine_Machine_To_v1alpha1_Machine(in *machine.Machine, out *Machine, s conversion.Scope) error {
- return autoConvert_machine_Machine_To_v1alpha1_Machine(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineClass_To_machine_MachineClass(in *MachineClass, out *machine.MachineClass, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- out.NodeTemplate = (*machine.NodeTemplate)(unsafe.Pointer(in.NodeTemplate))
- out.CredentialsSecretRef = (*v1.SecretReference)(unsafe.Pointer(in.CredentialsSecretRef))
- out.ProviderSpec = in.ProviderSpec
- out.Provider = in.Provider
- out.SecretRef = (*v1.SecretReference)(unsafe.Pointer(in.SecretRef))
- return nil
-}
-
-// Convert_v1alpha1_MachineClass_To_machine_MachineClass is an autogenerated conversion function.
-func Convert_v1alpha1_MachineClass_To_machine_MachineClass(in *MachineClass, out *machine.MachineClass, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineClass_To_machine_MachineClass(in, out, s)
-}
-
-func autoConvert_machine_MachineClass_To_v1alpha1_MachineClass(in *machine.MachineClass, out *MachineClass, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- out.NodeTemplate = (*NodeTemplate)(unsafe.Pointer(in.NodeTemplate))
- out.CredentialsSecretRef = (*v1.SecretReference)(unsafe.Pointer(in.CredentialsSecretRef))
- out.Provider = in.Provider
- out.ProviderSpec = in.ProviderSpec
- out.SecretRef = (*v1.SecretReference)(unsafe.Pointer(in.SecretRef))
- return nil
-}
-
-// Convert_machine_MachineClass_To_v1alpha1_MachineClass is an autogenerated conversion function.
-func Convert_machine_MachineClass_To_v1alpha1_MachineClass(in *machine.MachineClass, out *MachineClass, s conversion.Scope) error {
- return autoConvert_machine_MachineClass_To_v1alpha1_MachineClass(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineClassList_To_machine_MachineClassList(in *MachineClassList, out *machine.MachineClassList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]machine.MachineClass, len(*in))
- for i := range *in {
- if err := Convert_v1alpha1_MachineClass_To_machine_MachineClass(&(*in)[i], &(*out)[i], s); err != nil {
- return err
- }
- }
- } else {
- out.Items = nil
- }
- return nil
-}
-
-// Convert_v1alpha1_MachineClassList_To_machine_MachineClassList is an autogenerated conversion function.
-func Convert_v1alpha1_MachineClassList_To_machine_MachineClassList(in *MachineClassList, out *machine.MachineClassList, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineClassList_To_machine_MachineClassList(in, out, s)
-}
-
-func autoConvert_machine_MachineClassList_To_v1alpha1_MachineClassList(in *machine.MachineClassList, out *MachineClassList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineClass, len(*in))
- for i := range *in {
- if err := Convert_machine_MachineClass_To_v1alpha1_MachineClass(&(*in)[i], &(*out)[i], s); err != nil {
- return err
- }
- }
- } else {
- out.Items = nil
- }
- return nil
-}
-
-// Convert_machine_MachineClassList_To_v1alpha1_MachineClassList is an autogenerated conversion function.
-func Convert_machine_MachineClassList_To_v1alpha1_MachineClassList(in *machine.MachineClassList, out *MachineClassList, s conversion.Scope) error {
- return autoConvert_machine_MachineClassList_To_v1alpha1_MachineClassList(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in *MachineConfiguration, out *machine.MachineConfiguration, s conversion.Scope) error {
- out.MachineDrainTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineDrainTimeout))
- out.MachineHealthTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineHealthTimeout))
- out.MachineCreationTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineCreationTimeout))
- out.MachineInPlaceUpdateTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineInPlaceUpdateTimeout))
- out.MachinePreserveTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachinePreserveTimeout))
- out.DisableHealthTimeout = (*bool)(unsafe.Pointer(in.DisableHealthTimeout))
- out.MaxEvictRetries = (*int32)(unsafe.Pointer(in.MaxEvictRetries))
- out.NodeConditions = (*string)(unsafe.Pointer(in.NodeConditions))
- return nil
-}
-
-// Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration is an autogenerated conversion function.
-func Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in *MachineConfiguration, out *machine.MachineConfiguration, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in, out, s)
-}
-
-func autoConvert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in *machine.MachineConfiguration, out *MachineConfiguration, s conversion.Scope) error {
- out.MachineDrainTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineDrainTimeout))
- out.MachineHealthTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineHealthTimeout))
- out.MachineCreationTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineCreationTimeout))
- out.MachineInPlaceUpdateTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachineInPlaceUpdateTimeout))
- out.MachinePreserveTimeout = (*metav1.Duration)(unsafe.Pointer(in.MachinePreserveTimeout))
- out.DisableHealthTimeout = (*bool)(unsafe.Pointer(in.DisableHealthTimeout))
- out.MaxEvictRetries = (*int32)(unsafe.Pointer(in.MaxEvictRetries))
- out.NodeConditions = (*string)(unsafe.Pointer(in.NodeConditions))
- return nil
-}
-
-// Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration is an autogenerated conversion function.
-func Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in *machine.MachineConfiguration, out *MachineConfiguration, s conversion.Scope) error {
- return autoConvert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in *MachineDeployment, out *machine.MachineDeployment, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- if err := Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(&in.Status, &out.Status, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment is an autogenerated conversion function.
-func Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in *MachineDeployment, out *machine.MachineDeployment, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in, out, s)
-}
-
-func autoConvert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in *machine.MachineDeployment, out *MachineDeployment, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- if err := Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(&in.Status, &out.Status, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment is an autogenerated conversion function.
-func Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in *machine.MachineDeployment, out *MachineDeployment, s conversion.Scope) error {
- return autoConvert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in *MachineDeploymentCondition, out *machine.MachineDeploymentCondition, s conversion.Scope) error {
- out.Type = machine.MachineDeploymentConditionType(in.Type)
- out.Status = machine.ConditionStatus(in.Status)
- out.LastUpdateTime = in.LastUpdateTime
- out.LastTransitionTime = in.LastTransitionTime
- out.Reason = in.Reason
- out.Message = in.Message
- return nil
-}
-
-// Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition is an autogenerated conversion function.
-func Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in *MachineDeploymentCondition, out *machine.MachineDeploymentCondition, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in, out, s)
-}
-
-func autoConvert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in *machine.MachineDeploymentCondition, out *MachineDeploymentCondition, s conversion.Scope) error {
- out.Type = MachineDeploymentConditionType(in.Type)
- out.Status = ConditionStatus(in.Status)
- out.LastUpdateTime = in.LastUpdateTime
- out.LastTransitionTime = in.LastTransitionTime
- out.Reason = in.Reason
- out.Message = in.Message
- return nil
-}
-
-// Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition is an autogenerated conversion function.
-func Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in *machine.MachineDeploymentCondition, out *MachineDeploymentCondition, s conversion.Scope) error {
- return autoConvert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in *MachineDeploymentList, out *machine.MachineDeploymentList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- out.Items = *(*[]machine.MachineDeployment)(unsafe.Pointer(&in.Items))
- return nil
-}
-
-// Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList is an autogenerated conversion function.
-func Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in *MachineDeploymentList, out *machine.MachineDeploymentList, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in, out, s)
-}
-
-func autoConvert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in *machine.MachineDeploymentList, out *MachineDeploymentList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- out.Items = *(*[]MachineDeployment)(unsafe.Pointer(&in.Items))
- return nil
-}
-
-// Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList is an autogenerated conversion function.
-func Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in *machine.MachineDeploymentList, out *MachineDeploymentList, s conversion.Scope) error {
- return autoConvert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in *MachineDeploymentSpec, out *machine.MachineDeploymentSpec, s conversion.Scope) error {
- out.Replicas = in.Replicas
- out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
- if err := Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
- return err
- }
- if err := Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(&in.Strategy, &out.Strategy, s); err != nil {
- return err
- }
- out.MinReadySeconds = in.MinReadySeconds
- out.RevisionHistoryLimit = (*int32)(unsafe.Pointer(in.RevisionHistoryLimit))
- out.Paused = in.Paused
- out.RollbackTo = (*machine.RollbackConfig)(unsafe.Pointer(in.RollbackTo))
- out.ProgressDeadlineSeconds = (*int32)(unsafe.Pointer(in.ProgressDeadlineSeconds))
- out.AutoPreserveFailedMachineMax = in.AutoPreserveFailedMachineMax
- return nil
-}
-
-// Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec is an autogenerated conversion function.
-func Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in *MachineDeploymentSpec, out *machine.MachineDeploymentSpec, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in, out, s)
-}
-
-func autoConvert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in *machine.MachineDeploymentSpec, out *MachineDeploymentSpec, s conversion.Scope) error {
- out.Replicas = in.Replicas
- out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
- if err := Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
- return err
- }
- if err := Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(&in.Strategy, &out.Strategy, s); err != nil {
- return err
- }
- out.MinReadySeconds = in.MinReadySeconds
- out.RevisionHistoryLimit = (*int32)(unsafe.Pointer(in.RevisionHistoryLimit))
- out.Paused = in.Paused
- out.RollbackTo = (*RollbackConfig)(unsafe.Pointer(in.RollbackTo))
- out.ProgressDeadlineSeconds = (*int32)(unsafe.Pointer(in.ProgressDeadlineSeconds))
- out.AutoPreserveFailedMachineMax = in.AutoPreserveFailedMachineMax
- return nil
-}
-
-// Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec is an autogenerated conversion function.
-func Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in *machine.MachineDeploymentSpec, out *MachineDeploymentSpec, s conversion.Scope) error {
- return autoConvert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in *MachineDeploymentStatus, out *machine.MachineDeploymentStatus, s conversion.Scope) error {
- out.ObservedGeneration = in.ObservedGeneration
- out.Replicas = in.Replicas
- out.UpdatedReplicas = in.UpdatedReplicas
- out.ReadyReplicas = in.ReadyReplicas
- out.AvailableReplicas = in.AvailableReplicas
- out.UnavailableReplicas = in.UnavailableReplicas
- out.Conditions = *(*[]machine.MachineDeploymentCondition)(unsafe.Pointer(&in.Conditions))
- out.CollisionCount = (*int32)(unsafe.Pointer(in.CollisionCount))
- out.FailedMachines = *(*[]*machine.MachineSummary)(unsafe.Pointer(&in.FailedMachines))
- return nil
-}
-
-// Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus is an autogenerated conversion function.
-func Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in *MachineDeploymentStatus, out *machine.MachineDeploymentStatus, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in, out, s)
-}
-
-func autoConvert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in *machine.MachineDeploymentStatus, out *MachineDeploymentStatus, s conversion.Scope) error {
- out.ObservedGeneration = in.ObservedGeneration
- out.Replicas = in.Replicas
- out.UpdatedReplicas = in.UpdatedReplicas
- out.ReadyReplicas = in.ReadyReplicas
- out.AvailableReplicas = in.AvailableReplicas
- out.UnavailableReplicas = in.UnavailableReplicas
- out.Conditions = *(*[]MachineDeploymentCondition)(unsafe.Pointer(&in.Conditions))
- out.CollisionCount = (*int32)(unsafe.Pointer(in.CollisionCount))
- out.FailedMachines = *(*[]*MachineSummary)(unsafe.Pointer(&in.FailedMachines))
- return nil
-}
-
-// Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus is an autogenerated conversion function.
-func Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in *machine.MachineDeploymentStatus, out *MachineDeploymentStatus, s conversion.Scope) error {
- return autoConvert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in *MachineDeploymentStrategy, out *machine.MachineDeploymentStrategy, s conversion.Scope) error {
- out.Type = machine.MachineDeploymentStrategyType(in.Type)
- out.RollingUpdate = (*machine.RollingUpdateMachineDeployment)(unsafe.Pointer(in.RollingUpdate))
- out.InPlaceUpdate = (*machine.InPlaceUpdateMachineDeployment)(unsafe.Pointer(in.InPlaceUpdate))
- return nil
-}
-
-// Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy is an autogenerated conversion function.
-func Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in *MachineDeploymentStrategy, out *machine.MachineDeploymentStrategy, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in, out, s)
-}
-
-func autoConvert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in *machine.MachineDeploymentStrategy, out *MachineDeploymentStrategy, s conversion.Scope) error {
- out.Type = MachineDeploymentStrategyType(in.Type)
- out.RollingUpdate = (*RollingUpdateMachineDeployment)(unsafe.Pointer(in.RollingUpdate))
- out.InPlaceUpdate = (*InPlaceUpdateMachineDeployment)(unsafe.Pointer(in.InPlaceUpdate))
- return nil
-}
-
-// Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy is an autogenerated conversion function.
-func Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in *machine.MachineDeploymentStrategy, out *MachineDeploymentStrategy, s conversion.Scope) error {
- return autoConvert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineList_To_machine_MachineList(in *MachineList, out *machine.MachineList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- out.Items = *(*[]machine.Machine)(unsafe.Pointer(&in.Items))
- return nil
-}
-
-// Convert_v1alpha1_MachineList_To_machine_MachineList is an autogenerated conversion function.
-func Convert_v1alpha1_MachineList_To_machine_MachineList(in *MachineList, out *machine.MachineList, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineList_To_machine_MachineList(in, out, s)
-}
-
-func autoConvert_machine_MachineList_To_v1alpha1_MachineList(in *machine.MachineList, out *MachineList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- out.Items = *(*[]Machine)(unsafe.Pointer(&in.Items))
- return nil
-}
-
-// Convert_machine_MachineList_To_v1alpha1_MachineList is an autogenerated conversion function.
-func Convert_machine_MachineList_To_v1alpha1_MachineList(in *machine.MachineList, out *MachineList, s conversion.Scope) error {
- return autoConvert_machine_MachineList_To_v1alpha1_MachineList(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSet_To_machine_MachineSet(in *MachineSet, out *machine.MachineSet, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- if err := Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(&in.Status, &out.Status, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_v1alpha1_MachineSet_To_machine_MachineSet is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSet_To_machine_MachineSet(in *MachineSet, out *machine.MachineSet, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSet_To_machine_MachineSet(in, out, s)
-}
-
-func autoConvert_machine_MachineSet_To_v1alpha1_MachineSet(in *machine.MachineSet, out *MachineSet, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- if err := Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(&in.Status, &out.Status, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_machine_MachineSet_To_v1alpha1_MachineSet is an autogenerated conversion function.
-func Convert_machine_MachineSet_To_v1alpha1_MachineSet(in *machine.MachineSet, out *MachineSet, s conversion.Scope) error {
- return autoConvert_machine_MachineSet_To_v1alpha1_MachineSet(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in *MachineSetCondition, out *machine.MachineSetCondition, s conversion.Scope) error {
- out.Type = machine.MachineSetConditionType(in.Type)
- out.Status = machine.ConditionStatus(in.Status)
- out.LastTransitionTime = in.LastTransitionTime
- out.Reason = in.Reason
- out.Message = in.Message
- return nil
-}
-
-// Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in *MachineSetCondition, out *machine.MachineSetCondition, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in, out, s)
-}
-
-func autoConvert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in *machine.MachineSetCondition, out *MachineSetCondition, s conversion.Scope) error {
- out.Type = MachineSetConditionType(in.Type)
- out.Status = ConditionStatus(in.Status)
- out.LastTransitionTime = in.LastTransitionTime
- out.Reason = in.Reason
- out.Message = in.Message
- return nil
-}
-
-// Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition is an autogenerated conversion function.
-func Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in *machine.MachineSetCondition, out *MachineSetCondition, s conversion.Scope) error {
- return autoConvert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSetList_To_machine_MachineSetList(in *MachineSetList, out *machine.MachineSetList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- out.Items = *(*[]machine.MachineSet)(unsafe.Pointer(&in.Items))
- return nil
-}
-
-// Convert_v1alpha1_MachineSetList_To_machine_MachineSetList is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSetList_To_machine_MachineSetList(in *MachineSetList, out *machine.MachineSetList, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSetList_To_machine_MachineSetList(in, out, s)
-}
-
-func autoConvert_machine_MachineSetList_To_v1alpha1_MachineSetList(in *machine.MachineSetList, out *MachineSetList, s conversion.Scope) error {
- out.ListMeta = in.ListMeta
- out.Items = *(*[]MachineSet)(unsafe.Pointer(&in.Items))
- return nil
-}
-
-// Convert_machine_MachineSetList_To_v1alpha1_MachineSetList is an autogenerated conversion function.
-func Convert_machine_MachineSetList_To_v1alpha1_MachineSetList(in *machine.MachineSetList, out *MachineSetList, s conversion.Scope) error {
- return autoConvert_machine_MachineSetList_To_v1alpha1_MachineSetList(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in *MachineSetSpec, out *machine.MachineSetSpec, s conversion.Scope) error {
- out.Replicas = in.Replicas
- out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
- if err := Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(&in.MachineClass, &out.MachineClass, s); err != nil {
- return err
- }
- if err := Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
- return err
- }
- out.MinReadySeconds = in.MinReadySeconds
- out.AutoPreserveFailedMachineMax = in.AutoPreserveFailedMachineMax
- return nil
-}
-
-// Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in *MachineSetSpec, out *machine.MachineSetSpec, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in, out, s)
-}
-
-func autoConvert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in *machine.MachineSetSpec, out *MachineSetSpec, s conversion.Scope) error {
- out.Replicas = in.Replicas
- out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
- if err := Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(&in.MachineClass, &out.MachineClass, s); err != nil {
- return err
- }
- if err := Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
- return err
- }
- out.MinReadySeconds = in.MinReadySeconds
- out.AutoPreserveFailedMachineMax = in.AutoPreserveFailedMachineMax
- return nil
-}
-
-// Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec is an autogenerated conversion function.
-func Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in *machine.MachineSetSpec, out *MachineSetSpec, s conversion.Scope) error {
- return autoConvert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in *MachineSetStatus, out *machine.MachineSetStatus, s conversion.Scope) error {
- out.Replicas = in.Replicas
- out.FullyLabeledReplicas = in.FullyLabeledReplicas
- out.ReadyReplicas = in.ReadyReplicas
- out.AvailableReplicas = in.AvailableReplicas
- out.ObservedGeneration = in.ObservedGeneration
- out.Conditions = *(*[]machine.MachineSetCondition)(unsafe.Pointer(&in.Conditions))
- if err := Convert_v1alpha1_LastOperation_To_machine_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
- return err
- }
- out.FailedMachines = (*[]machine.MachineSummary)(unsafe.Pointer(in.FailedMachines))
- out.AutoPreserveFailedMachineCount = in.AutoPreserveFailedMachineCount
- return nil
-}
-
-// Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in *MachineSetStatus, out *machine.MachineSetStatus, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in, out, s)
-}
-
-func autoConvert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in *machine.MachineSetStatus, out *MachineSetStatus, s conversion.Scope) error {
- out.Replicas = in.Replicas
- out.FullyLabeledReplicas = in.FullyLabeledReplicas
- out.ReadyReplicas = in.ReadyReplicas
- out.AvailableReplicas = in.AvailableReplicas
- out.ObservedGeneration = in.ObservedGeneration
- out.Conditions = *(*[]MachineSetCondition)(unsafe.Pointer(&in.Conditions))
- if err := Convert_machine_LastOperation_To_v1alpha1_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
- return err
- }
- out.FailedMachines = (*[]MachineSummary)(unsafe.Pointer(in.FailedMachines))
- out.AutoPreserveFailedMachineCount = in.AutoPreserveFailedMachineCount
- return nil
-}
-
-// Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus is an autogenerated conversion function.
-func Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in *machine.MachineSetStatus, out *MachineSetStatus, s conversion.Scope) error {
- return autoConvert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSpec_To_machine_MachineSpec(in *MachineSpec, out *machine.MachineSpec, s conversion.Scope) error {
- if err := Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(&in.Class, &out.Class, s); err != nil {
- return err
- }
- out.ProviderID = in.ProviderID
- if err := Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(&in.NodeTemplateSpec, &out.NodeTemplateSpec, s); err != nil {
- return err
- }
- out.MachineConfiguration = (*machine.MachineConfiguration)(unsafe.Pointer(in.MachineConfiguration))
- return nil
-}
-
-// Convert_v1alpha1_MachineSpec_To_machine_MachineSpec is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(in *MachineSpec, out *machine.MachineSpec, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSpec_To_machine_MachineSpec(in, out, s)
-}
-
-func autoConvert_machine_MachineSpec_To_v1alpha1_MachineSpec(in *machine.MachineSpec, out *MachineSpec, s conversion.Scope) error {
- if err := Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(&in.Class, &out.Class, s); err != nil {
- return err
- }
- out.ProviderID = in.ProviderID
- if err := Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(&in.NodeTemplateSpec, &out.NodeTemplateSpec, s); err != nil {
- return err
- }
- out.MachineConfiguration = (*MachineConfiguration)(unsafe.Pointer(in.MachineConfiguration))
- return nil
-}
-
-// Convert_machine_MachineSpec_To_v1alpha1_MachineSpec is an autogenerated conversion function.
-func Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(in *machine.MachineSpec, out *MachineSpec, s conversion.Scope) error {
- return autoConvert_machine_MachineSpec_To_v1alpha1_MachineSpec(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineStatus_To_machine_MachineStatus(in *MachineStatus, out *machine.MachineStatus, s conversion.Scope) error {
- out.Addresses = *(*[]v1.NodeAddress)(unsafe.Pointer(&in.Addresses))
- out.Conditions = *(*[]v1.NodeCondition)(unsafe.Pointer(&in.Conditions))
- if err := Convert_v1alpha1_LastOperation_To_machine_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
- return err
- }
- if err := Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(&in.CurrentStatus, &out.CurrentStatus, s); err != nil {
- return err
- }
- out.LastKnownState = in.LastKnownState
- return nil
-}
-
-// Convert_v1alpha1_MachineStatus_To_machine_MachineStatus is an autogenerated conversion function.
-func Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(in *MachineStatus, out *machine.MachineStatus, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineStatus_To_machine_MachineStatus(in, out, s)
-}
-
-func autoConvert_machine_MachineStatus_To_v1alpha1_MachineStatus(in *machine.MachineStatus, out *MachineStatus, s conversion.Scope) error {
- out.Addresses = *(*[]v1.NodeAddress)(unsafe.Pointer(&in.Addresses))
- out.Conditions = *(*[]v1.NodeCondition)(unsafe.Pointer(&in.Conditions))
- if err := Convert_machine_LastOperation_To_v1alpha1_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
- return err
- }
- if err := Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(&in.CurrentStatus, &out.CurrentStatus, s); err != nil {
- return err
- }
- out.LastKnownState = in.LastKnownState
- return nil
-}
-
-// Convert_machine_MachineStatus_To_v1alpha1_MachineStatus is an autogenerated conversion function.
-func Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(in *machine.MachineStatus, out *MachineStatus, s conversion.Scope) error {
- return autoConvert_machine_MachineStatus_To_v1alpha1_MachineStatus(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineSummary_To_machine_MachineSummary(in *MachineSummary, out *machine.MachineSummary, s conversion.Scope) error {
- out.Name = in.Name
- out.ProviderID = in.ProviderID
- if err := Convert_v1alpha1_LastOperation_To_machine_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
- return err
- }
- out.OwnerRef = in.OwnerRef
- return nil
-}
-
-// Convert_v1alpha1_MachineSummary_To_machine_MachineSummary is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSummary_To_machine_MachineSummary(in *MachineSummary, out *machine.MachineSummary, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineSummary_To_machine_MachineSummary(in, out, s)
-}
-
-func autoConvert_machine_MachineSummary_To_v1alpha1_MachineSummary(in *machine.MachineSummary, out *MachineSummary, s conversion.Scope) error {
- out.Name = in.Name
- out.ProviderID = in.ProviderID
- if err := Convert_machine_LastOperation_To_v1alpha1_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
- return err
- }
- out.OwnerRef = in.OwnerRef
- return nil
-}
-
-// Convert_machine_MachineSummary_To_v1alpha1_MachineSummary is an autogenerated conversion function.
-func Convert_machine_MachineSummary_To_v1alpha1_MachineSummary(in *machine.MachineSummary, out *MachineSummary, s conversion.Scope) error {
- return autoConvert_machine_MachineSummary_To_v1alpha1_MachineSummary(in, out, s)
-}
-
-func autoConvert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in *MachineTemplateSpec, out *machine.MachineTemplateSpec, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec is an autogenerated conversion function.
-func Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in *MachineTemplateSpec, out *machine.MachineTemplateSpec, s conversion.Scope) error {
- return autoConvert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in, out, s)
-}
-
-func autoConvert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in *machine.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- if err := Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec is an autogenerated conversion function.
-func Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in *machine.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error {
- return autoConvert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in, out, s)
-}
-
-func autoConvert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in *NodeTemplate, out *machine.NodeTemplate, s conversion.Scope) error {
- out.Capacity = *(*v1.ResourceList)(unsafe.Pointer(&in.Capacity))
- out.VirtualCapacity = *(*v1.ResourceList)(unsafe.Pointer(&in.VirtualCapacity))
- out.InstanceType = in.InstanceType
- out.Region = in.Region
- out.Zone = in.Zone
- out.Architecture = (*string)(unsafe.Pointer(in.Architecture))
- return nil
-}
-
-// Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate is an autogenerated conversion function.
-func Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in *NodeTemplate, out *machine.NodeTemplate, s conversion.Scope) error {
- return autoConvert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in, out, s)
-}
-
-func autoConvert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in *machine.NodeTemplate, out *NodeTemplate, s conversion.Scope) error {
- out.Capacity = *(*v1.ResourceList)(unsafe.Pointer(&in.Capacity))
- out.VirtualCapacity = *(*v1.ResourceList)(unsafe.Pointer(&in.VirtualCapacity))
- out.InstanceType = in.InstanceType
- out.Region = in.Region
- out.Zone = in.Zone
- out.Architecture = (*string)(unsafe.Pointer(in.Architecture))
- return nil
-}
-
-// Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate is an autogenerated conversion function.
-func Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in *machine.NodeTemplate, out *NodeTemplate, s conversion.Scope) error {
- return autoConvert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in, out, s)
-}
-
-func autoConvert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in *NodeTemplateSpec, out *machine.NodeTemplateSpec, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- out.Spec = in.Spec
- return nil
-}
-
-// Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec is an autogenerated conversion function.
-func Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in *NodeTemplateSpec, out *machine.NodeTemplateSpec, s conversion.Scope) error {
- return autoConvert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in, out, s)
-}
-
-func autoConvert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in *machine.NodeTemplateSpec, out *NodeTemplateSpec, s conversion.Scope) error {
- out.ObjectMeta = in.ObjectMeta
- out.Spec = in.Spec
- return nil
-}
-
-// Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec is an autogenerated conversion function.
-func Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in *machine.NodeTemplateSpec, out *NodeTemplateSpec, s conversion.Scope) error {
- return autoConvert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in, out, s)
-}
-
-func autoConvert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in *RollbackConfig, out *machine.RollbackConfig, s conversion.Scope) error {
- out.Revision = in.Revision
- return nil
-}
-
-// Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig is an autogenerated conversion function.
-func Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in *RollbackConfig, out *machine.RollbackConfig, s conversion.Scope) error {
- return autoConvert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in, out, s)
-}
-
-func autoConvert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in *machine.RollbackConfig, out *RollbackConfig, s conversion.Scope) error {
- out.Revision = in.Revision
- return nil
-}
-
-// Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig is an autogenerated conversion function.
-func Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in *machine.RollbackConfig, out *RollbackConfig, s conversion.Scope) error {
- return autoConvert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in, out, s)
-}
-
-func autoConvert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in *RollingUpdateMachineDeployment, out *machine.RollingUpdateMachineDeployment, s conversion.Scope) error {
- if err := Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment is an autogenerated conversion function.
-func Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in *RollingUpdateMachineDeployment, out *machine.RollingUpdateMachineDeployment, s conversion.Scope) error {
- return autoConvert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in, out, s)
-}
-
-func autoConvert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in *machine.RollingUpdateMachineDeployment, out *RollingUpdateMachineDeployment, s conversion.Scope) error {
- if err := Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
- return err
- }
- return nil
-}
-
-// Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment is an autogenerated conversion function.
-func Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in *machine.RollingUpdateMachineDeployment, out *RollingUpdateMachineDeployment, s conversion.Scope) error {
- return autoConvert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in, out, s)
-}
-
-func autoConvert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in *UpdateConfiguration, out *machine.UpdateConfiguration, s conversion.Scope) error {
- out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
- out.MaxSurge = (*intstr.IntOrString)(unsafe.Pointer(in.MaxSurge))
- return nil
-}
-
-// Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration is an autogenerated conversion function.
-func Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in *UpdateConfiguration, out *machine.UpdateConfiguration, s conversion.Scope) error {
- return autoConvert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in, out, s)
-}
-
-func autoConvert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in *machine.UpdateConfiguration, out *UpdateConfiguration, s conversion.Scope) error {
- out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
- out.MaxSurge = (*intstr.IntOrString)(unsafe.Pointer(in.MaxSurge))
- return nil
-}
-
-// Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration is an autogenerated conversion function.
-func Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in *machine.UpdateConfiguration, out *UpdateConfiguration, s conversion.Scope) error {
- return autoConvert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in, out, s)
-}
diff --git a/pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go
deleted file mode 100644
index 13aab59e2..000000000
--- a/pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go
+++ /dev/null
@@ -1,795 +0,0 @@
-//go:build !ignore_autogenerated
-// +build !ignore_autogenerated
-
-// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
-//
-// SPDX-License-Identifier: Apache-2.0
-
-// Code generated by deepcopy-gen. DO NOT EDIT.
-
-package v1alpha1
-
-import (
- v1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- intstr "k8s.io/apimachinery/pkg/util/intstr"
-)
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *ClassSpec) DeepCopyInto(out *ClassSpec) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClassSpec.
-func (in *ClassSpec) DeepCopy() *ClassSpec {
- if in == nil {
- return nil
- }
- out := new(ClassSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *CurrentStatus) DeepCopyInto(out *CurrentStatus) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- in.PreserveExpiryTime.DeepCopyInto(&out.PreserveExpiryTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CurrentStatus.
-func (in *CurrentStatus) DeepCopy() *CurrentStatus {
- if in == nil {
- return nil
- }
- out := new(CurrentStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *InPlaceUpdateMachineDeployment) DeepCopyInto(out *InPlaceUpdateMachineDeployment) {
- *out = *in
- in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InPlaceUpdateMachineDeployment.
-func (in *InPlaceUpdateMachineDeployment) DeepCopy() *InPlaceUpdateMachineDeployment {
- if in == nil {
- return nil
- }
- out := new(InPlaceUpdateMachineDeployment)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *LastOperation) DeepCopyInto(out *LastOperation) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastOperation.
-func (in *LastOperation) DeepCopy() *LastOperation {
- if in == nil {
- return nil
- }
- out := new(LastOperation)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *Machine) DeepCopyInto(out *Machine) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- out.TypeMeta = in.TypeMeta
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
-func (in *Machine) DeepCopy() *Machine {
- if in == nil {
- return nil
- }
- out := new(Machine)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *Machine) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineClass) DeepCopyInto(out *MachineClass) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- if in.NodeTemplate != nil {
- in, out := &in.NodeTemplate, &out.NodeTemplate
- *out = new(NodeTemplate)
- (*in).DeepCopyInto(*out)
- }
- if in.CredentialsSecretRef != nil {
- in, out := &in.CredentialsSecretRef, &out.CredentialsSecretRef
- *out = new(v1.SecretReference)
- **out = **in
- }
- in.ProviderSpec.DeepCopyInto(&out.ProviderSpec)
- if in.SecretRef != nil {
- in, out := &in.SecretRef, &out.SecretRef
- *out = new(v1.SecretReference)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClass.
-func (in *MachineClass) DeepCopy() *MachineClass {
- if in == nil {
- return nil
- }
- out := new(MachineClass)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineClass) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineClassList) DeepCopyInto(out *MachineClassList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineClass, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassList.
-func (in *MachineClassList) DeepCopy() *MachineClassList {
- if in == nil {
- return nil
- }
- out := new(MachineClassList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineClassList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineConfiguration) DeepCopyInto(out *MachineConfiguration) {
- *out = *in
- if in.MachineDrainTimeout != nil {
- in, out := &in.MachineDrainTimeout, &out.MachineDrainTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachineHealthTimeout != nil {
- in, out := &in.MachineHealthTimeout, &out.MachineHealthTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachineCreationTimeout != nil {
- in, out := &in.MachineCreationTimeout, &out.MachineCreationTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachineInPlaceUpdateTimeout != nil {
- in, out := &in.MachineInPlaceUpdateTimeout, &out.MachineInPlaceUpdateTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachinePreserveTimeout != nil {
- in, out := &in.MachinePreserveTimeout, &out.MachinePreserveTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.DisableHealthTimeout != nil {
- in, out := &in.DisableHealthTimeout, &out.DisableHealthTimeout
- *out = new(bool)
- **out = **in
- }
- if in.MaxEvictRetries != nil {
- in, out := &in.MaxEvictRetries, &out.MaxEvictRetries
- *out = new(int32)
- **out = **in
- }
- if in.NodeConditions != nil {
- in, out := &in.NodeConditions, &out.NodeConditions
- *out = new(string)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfiguration.
-func (in *MachineConfiguration) DeepCopy() *MachineConfiguration {
- if in == nil {
- return nil
- }
- out := new(MachineConfiguration)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeployment.
-func (in *MachineDeployment) DeepCopy() *MachineDeployment {
- if in == nil {
- return nil
- }
- out := new(MachineDeployment)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineDeployment) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentCondition) DeepCopyInto(out *MachineDeploymentCondition) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentCondition.
-func (in *MachineDeploymentCondition) DeepCopy() *MachineDeploymentCondition {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentCondition)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineDeployment, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentList.
-func (in *MachineDeploymentList) DeepCopy() *MachineDeploymentList {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineDeploymentList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec) {
- *out = *in
- if in.Selector != nil {
- in, out := &in.Selector, &out.Selector
- *out = new(metav1.LabelSelector)
- (*in).DeepCopyInto(*out)
- }
- in.Template.DeepCopyInto(&out.Template)
- in.Strategy.DeepCopyInto(&out.Strategy)
- if in.RevisionHistoryLimit != nil {
- in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
- *out = new(int32)
- **out = **in
- }
- if in.RollbackTo != nil {
- in, out := &in.RollbackTo, &out.RollbackTo
- *out = new(RollbackConfig)
- **out = **in
- }
- if in.ProgressDeadlineSeconds != nil {
- in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds
- *out = new(int32)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentSpec.
-func (in *MachineDeploymentSpec) DeepCopy() *MachineDeploymentSpec {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus) {
- *out = *in
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]MachineDeploymentCondition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.CollisionCount != nil {
- in, out := &in.CollisionCount, &out.CollisionCount
- *out = new(int32)
- **out = **in
- }
- if in.FailedMachines != nil {
- in, out := &in.FailedMachines, &out.FailedMachines
- *out = make([]*MachineSummary, len(*in))
- for i := range *in {
- if (*in)[i] != nil {
- in, out := &(*in)[i], &(*out)[i]
- *out = new(MachineSummary)
- (*in).DeepCopyInto(*out)
- }
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStatus.
-func (in *MachineDeploymentStatus) DeepCopy() *MachineDeploymentStatus {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentStrategy) DeepCopyInto(out *MachineDeploymentStrategy) {
- *out = *in
- if in.RollingUpdate != nil {
- in, out := &in.RollingUpdate, &out.RollingUpdate
- *out = new(RollingUpdateMachineDeployment)
- (*in).DeepCopyInto(*out)
- }
- if in.InPlaceUpdate != nil {
- in, out := &in.InPlaceUpdate, &out.InPlaceUpdate
- *out = new(InPlaceUpdateMachineDeployment)
- (*in).DeepCopyInto(*out)
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStrategy.
-func (in *MachineDeploymentStrategy) DeepCopy() *MachineDeploymentStrategy {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentStrategy)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineList) DeepCopyInto(out *MachineList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]Machine, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
-func (in *MachineList) DeepCopy() *MachineList {
- if in == nil {
- return nil
- }
- out := new(MachineList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSet) DeepCopyInto(out *MachineSet) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- out.TypeMeta = in.TypeMeta
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSet.
-func (in *MachineSet) DeepCopy() *MachineSet {
- if in == nil {
- return nil
- }
- out := new(MachineSet)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineSet) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetCondition) DeepCopyInto(out *MachineSetCondition) {
- *out = *in
- in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetCondition.
-func (in *MachineSetCondition) DeepCopy() *MachineSetCondition {
- if in == nil {
- return nil
- }
- out := new(MachineSetCondition)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetList) DeepCopyInto(out *MachineSetList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineSet, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetList.
-func (in *MachineSetList) DeepCopy() *MachineSetList {
- if in == nil {
- return nil
- }
- out := new(MachineSetList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineSetList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec) {
- *out = *in
- if in.Selector != nil {
- in, out := &in.Selector, &out.Selector
- *out = new(metav1.LabelSelector)
- (*in).DeepCopyInto(*out)
- }
- out.MachineClass = in.MachineClass
- in.Template.DeepCopyInto(&out.Template)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetSpec.
-func (in *MachineSetSpec) DeepCopy() *MachineSetSpec {
- if in == nil {
- return nil
- }
- out := new(MachineSetSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus) {
- *out = *in
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]MachineSetCondition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- in.LastOperation.DeepCopyInto(&out.LastOperation)
- if in.FailedMachines != nil {
- in, out := &in.FailedMachines, &out.FailedMachines
- *out = new([]MachineSummary)
- if **in != nil {
- in, out := *in, *out
- *out = make([]MachineSummary, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetStatus.
-func (in *MachineSetStatus) DeepCopy() *MachineSetStatus {
- if in == nil {
- return nil
- }
- out := new(MachineSetStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSpec) DeepCopyInto(out *MachineSpec) {
- *out = *in
- out.Class = in.Class
- in.NodeTemplateSpec.DeepCopyInto(&out.NodeTemplateSpec)
- if in.MachineConfiguration != nil {
- in, out := &in.MachineConfiguration, &out.MachineConfiguration
- *out = new(MachineConfiguration)
- (*in).DeepCopyInto(*out)
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
-func (in *MachineSpec) DeepCopy() *MachineSpec {
- if in == nil {
- return nil
- }
- out := new(MachineSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
- *out = *in
- if in.Addresses != nil {
- in, out := &in.Addresses, &out.Addresses
- *out = make([]v1.NodeAddress, len(*in))
- copy(*out, *in)
- }
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]v1.NodeCondition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- in.LastOperation.DeepCopyInto(&out.LastOperation)
- in.CurrentStatus.DeepCopyInto(&out.CurrentStatus)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
-func (in *MachineStatus) DeepCopy() *MachineStatus {
- if in == nil {
- return nil
- }
- out := new(MachineStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSummary) DeepCopyInto(out *MachineSummary) {
- *out = *in
- in.LastOperation.DeepCopyInto(&out.LastOperation)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSummary.
-func (in *MachineSummary) DeepCopy() *MachineSummary {
- if in == nil {
- return nil
- }
- out := new(MachineSummary)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.
-func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec {
- if in == nil {
- return nil
- }
- out := new(MachineTemplateSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate) {
- *out = *in
- if in.Capacity != nil {
- in, out := &in.Capacity, &out.Capacity
- *out = make(v1.ResourceList, len(*in))
- for key, val := range *in {
- (*out)[key] = val.DeepCopy()
- }
- }
- if in.VirtualCapacity != nil {
- in, out := &in.VirtualCapacity, &out.VirtualCapacity
- *out = make(v1.ResourceList, len(*in))
- for key, val := range *in {
- (*out)[key] = val.DeepCopy()
- }
- }
- if in.Architecture != nil {
- in, out := &in.Architecture, &out.Architecture
- *out = new(string)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplate.
-func (in *NodeTemplate) DeepCopy() *NodeTemplate {
- if in == nil {
- return nil
- }
- out := new(NodeTemplate)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateSpec.
-func (in *NodeTemplateSpec) DeepCopy() *NodeTemplateSpec {
- if in == nil {
- return nil
- }
- out := new(NodeTemplateSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig.
-func (in *RollbackConfig) DeepCopy() *RollbackConfig {
- if in == nil {
- return nil
- }
- out := new(RollbackConfig)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *RollingUpdateMachineDeployment) DeepCopyInto(out *RollingUpdateMachineDeployment) {
- *out = *in
- in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateMachineDeployment.
-func (in *RollingUpdateMachineDeployment) DeepCopy() *RollingUpdateMachineDeployment {
- if in == nil {
- return nil
- }
- out := new(RollingUpdateMachineDeployment)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *UpdateConfiguration) DeepCopyInto(out *UpdateConfiguration) {
- *out = *in
- if in.MaxUnavailable != nil {
- in, out := &in.MaxUnavailable, &out.MaxUnavailable
- *out = new(intstr.IntOrString)
- **out = **in
- }
- if in.MaxSurge != nil {
- in, out := &in.MaxSurge, &out.MaxSurge
- *out = new(intstr.IntOrString)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfiguration.
-func (in *UpdateConfiguration) DeepCopy() *UpdateConfiguration {
- if in == nil {
- return nil
- }
- out := new(UpdateConfiguration)
- in.DeepCopyInto(out)
- return out
-}
diff --git a/pkg/apis/machine/v1alpha1/zz_generated.defaults.go b/pkg/apis/machine/v1alpha1/zz_generated.defaults.go
deleted file mode 100644
index dce68e638..000000000
--- a/pkg/apis/machine/v1alpha1/zz_generated.defaults.go
+++ /dev/null
@@ -1,21 +0,0 @@
-//go:build !ignore_autogenerated
-// +build !ignore_autogenerated
-
-// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
-//
-// SPDX-License-Identifier: Apache-2.0
-
-// Code generated by defaulter-gen. DO NOT EDIT.
-
-package v1alpha1
-
-import (
- runtime "k8s.io/apimachinery/pkg/runtime"
-)
-
-// 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 RegisterDefaults(scheme *runtime.Scheme) error {
- return nil
-}
diff --git a/pkg/apis/machine/zz_generated.deepcopy.go b/pkg/apis/machine/zz_generated.deepcopy.go
deleted file mode 100644
index 90aa57743..000000000
--- a/pkg/apis/machine/zz_generated.deepcopy.go
+++ /dev/null
@@ -1,888 +0,0 @@
-//go:build !ignore_autogenerated
-// +build !ignore_autogenerated
-
-// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
-//
-// SPDX-License-Identifier: Apache-2.0
-
-// Code generated by deepcopy-gen. DO NOT EDIT.
-
-package machine
-
-import (
- v1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- intstr "k8s.io/apimachinery/pkg/util/intstr"
-)
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *ClassSpec) DeepCopyInto(out *ClassSpec) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClassSpec.
-func (in *ClassSpec) DeepCopy() *ClassSpec {
- if in == nil {
- return nil
- }
- out := new(ClassSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *CurrentStatus) DeepCopyInto(out *CurrentStatus) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- in.PreserveExpiryTime.DeepCopyInto(&out.PreserveExpiryTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CurrentStatus.
-func (in *CurrentStatus) DeepCopy() *CurrentStatus {
- if in == nil {
- return nil
- }
- out := new(CurrentStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *InPlaceUpdateMachineDeployment) DeepCopyInto(out *InPlaceUpdateMachineDeployment) {
- *out = *in
- in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InPlaceUpdateMachineDeployment.
-func (in *InPlaceUpdateMachineDeployment) DeepCopy() *InPlaceUpdateMachineDeployment {
- if in == nil {
- return nil
- }
- out := new(InPlaceUpdateMachineDeployment)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *LastOperation) DeepCopyInto(out *LastOperation) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastOperation.
-func (in *LastOperation) DeepCopy() *LastOperation {
- if in == nil {
- return nil
- }
- out := new(LastOperation)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *Machine) DeepCopyInto(out *Machine) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- out.TypeMeta = in.TypeMeta
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
-func (in *Machine) DeepCopy() *Machine {
- if in == nil {
- return nil
- }
- out := new(Machine)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *Machine) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineClass) DeepCopyInto(out *MachineClass) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- if in.NodeTemplate != nil {
- in, out := &in.NodeTemplate, &out.NodeTemplate
- *out = new(NodeTemplate)
- (*in).DeepCopyInto(*out)
- }
- if in.CredentialsSecretRef != nil {
- in, out := &in.CredentialsSecretRef, &out.CredentialsSecretRef
- *out = new(v1.SecretReference)
- **out = **in
- }
- in.ProviderSpec.DeepCopyInto(&out.ProviderSpec)
- if in.SecretRef != nil {
- in, out := &in.SecretRef, &out.SecretRef
- *out = new(v1.SecretReference)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClass.
-func (in *MachineClass) DeepCopy() *MachineClass {
- if in == nil {
- return nil
- }
- out := new(MachineClass)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineClass) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineClassList) DeepCopyInto(out *MachineClassList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineClass, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassList.
-func (in *MachineClassList) DeepCopy() *MachineClassList {
- if in == nil {
- return nil
- }
- out := new(MachineClassList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineClassList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineConfiguration) DeepCopyInto(out *MachineConfiguration) {
- *out = *in
- if in.MachineDrainTimeout != nil {
- in, out := &in.MachineDrainTimeout, &out.MachineDrainTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachineHealthTimeout != nil {
- in, out := &in.MachineHealthTimeout, &out.MachineHealthTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachineCreationTimeout != nil {
- in, out := &in.MachineCreationTimeout, &out.MachineCreationTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachineInPlaceUpdateTimeout != nil {
- in, out := &in.MachineInPlaceUpdateTimeout, &out.MachineInPlaceUpdateTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.MachinePreserveTimeout != nil {
- in, out := &in.MachinePreserveTimeout, &out.MachinePreserveTimeout
- *out = new(metav1.Duration)
- **out = **in
- }
- if in.DisableHealthTimeout != nil {
- in, out := &in.DisableHealthTimeout, &out.DisableHealthTimeout
- *out = new(bool)
- **out = **in
- }
- if in.MaxEvictRetries != nil {
- in, out := &in.MaxEvictRetries, &out.MaxEvictRetries
- *out = new(int32)
- **out = **in
- }
- if in.NodeConditions != nil {
- in, out := &in.NodeConditions, &out.NodeConditions
- *out = new(string)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfiguration.
-func (in *MachineConfiguration) DeepCopy() *MachineConfiguration {
- if in == nil {
- return nil
- }
- out := new(MachineConfiguration)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeployment.
-func (in *MachineDeployment) DeepCopy() *MachineDeployment {
- if in == nil {
- return nil
- }
- out := new(MachineDeployment)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineDeployment) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentCondition) DeepCopyInto(out *MachineDeploymentCondition) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentCondition.
-func (in *MachineDeploymentCondition) DeepCopy() *MachineDeploymentCondition {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentCondition)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineDeployment, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentList.
-func (in *MachineDeploymentList) DeepCopy() *MachineDeploymentList {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineDeploymentList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentRollback) DeepCopyInto(out *MachineDeploymentRollback) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- if in.UpdatedAnnotations != nil {
- in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- out.RollbackTo = in.RollbackTo
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentRollback.
-func (in *MachineDeploymentRollback) DeepCopy() *MachineDeploymentRollback {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentRollback)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineDeploymentRollback) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec) {
- *out = *in
- if in.Selector != nil {
- in, out := &in.Selector, &out.Selector
- *out = new(metav1.LabelSelector)
- (*in).DeepCopyInto(*out)
- }
- in.Template.DeepCopyInto(&out.Template)
- in.Strategy.DeepCopyInto(&out.Strategy)
- if in.RevisionHistoryLimit != nil {
- in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
- *out = new(int32)
- **out = **in
- }
- if in.RollbackTo != nil {
- in, out := &in.RollbackTo, &out.RollbackTo
- *out = new(RollbackConfig)
- **out = **in
- }
- if in.ProgressDeadlineSeconds != nil {
- in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds
- *out = new(int32)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentSpec.
-func (in *MachineDeploymentSpec) DeepCopy() *MachineDeploymentSpec {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus) {
- *out = *in
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]MachineDeploymentCondition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.CollisionCount != nil {
- in, out := &in.CollisionCount, &out.CollisionCount
- *out = new(int32)
- **out = **in
- }
- if in.FailedMachines != nil {
- in, out := &in.FailedMachines, &out.FailedMachines
- *out = make([]*MachineSummary, len(*in))
- for i := range *in {
- if (*in)[i] != nil {
- in, out := &(*in)[i], &(*out)[i]
- *out = new(MachineSummary)
- (*in).DeepCopyInto(*out)
- }
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStatus.
-func (in *MachineDeploymentStatus) DeepCopy() *MachineDeploymentStatus {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineDeploymentStrategy) DeepCopyInto(out *MachineDeploymentStrategy) {
- *out = *in
- if in.RollingUpdate != nil {
- in, out := &in.RollingUpdate, &out.RollingUpdate
- *out = new(RollingUpdateMachineDeployment)
- (*in).DeepCopyInto(*out)
- }
- if in.InPlaceUpdate != nil {
- in, out := &in.InPlaceUpdate, &out.InPlaceUpdate
- *out = new(InPlaceUpdateMachineDeployment)
- (*in).DeepCopyInto(*out)
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStrategy.
-func (in *MachineDeploymentStrategy) DeepCopy() *MachineDeploymentStrategy {
- if in == nil {
- return nil
- }
- out := new(MachineDeploymentStrategy)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineList) DeepCopyInto(out *MachineList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]Machine, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
-func (in *MachineList) DeepCopy() *MachineList {
- if in == nil {
- return nil
- }
- out := new(MachineList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSet) DeepCopyInto(out *MachineSet) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- out.TypeMeta = in.TypeMeta
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSet.
-func (in *MachineSet) DeepCopy() *MachineSet {
- if in == nil {
- return nil
- }
- out := new(MachineSet)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineSet) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetCondition) DeepCopyInto(out *MachineSetCondition) {
- *out = *in
- in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetCondition.
-func (in *MachineSetCondition) DeepCopy() *MachineSetCondition {
- if in == nil {
- return nil
- }
- out := new(MachineSetCondition)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetList) DeepCopyInto(out *MachineSetList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineSet, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetList.
-func (in *MachineSetList) DeepCopy() *MachineSetList {
- if in == nil {
- return nil
- }
- out := new(MachineSetList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineSetList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec) {
- *out = *in
- if in.Selector != nil {
- in, out := &in.Selector, &out.Selector
- *out = new(metav1.LabelSelector)
- (*in).DeepCopyInto(*out)
- }
- out.MachineClass = in.MachineClass
- in.Template.DeepCopyInto(&out.Template)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetSpec.
-func (in *MachineSetSpec) DeepCopy() *MachineSetSpec {
- if in == nil {
- return nil
- }
- out := new(MachineSetSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus) {
- *out = *in
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]MachineSetCondition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- in.LastOperation.DeepCopyInto(&out.LastOperation)
- if in.FailedMachines != nil {
- in, out := &in.FailedMachines, &out.FailedMachines
- *out = new([]MachineSummary)
- if **in != nil {
- in, out := *in, *out
- *out = make([]MachineSummary, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetStatus.
-func (in *MachineSetStatus) DeepCopy() *MachineSetStatus {
- if in == nil {
- return nil
- }
- out := new(MachineSetStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSpec) DeepCopyInto(out *MachineSpec) {
- *out = *in
- out.Class = in.Class
- in.NodeTemplateSpec.DeepCopyInto(&out.NodeTemplateSpec)
- if in.MachineConfiguration != nil {
- in, out := &in.MachineConfiguration, &out.MachineConfiguration
- *out = new(MachineConfiguration)
- (*in).DeepCopyInto(*out)
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
-func (in *MachineSpec) DeepCopy() *MachineSpec {
- if in == nil {
- return nil
- }
- out := new(MachineSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
- *out = *in
- if in.Addresses != nil {
- in, out := &in.Addresses, &out.Addresses
- *out = make([]v1.NodeAddress, len(*in))
- copy(*out, *in)
- }
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]v1.NodeCondition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- in.LastOperation.DeepCopyInto(&out.LastOperation)
- in.CurrentStatus.DeepCopyInto(&out.CurrentStatus)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
-func (in *MachineStatus) DeepCopy() *MachineStatus {
- if in == nil {
- return nil
- }
- out := new(MachineStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineSummary) DeepCopyInto(out *MachineSummary) {
- *out = *in
- in.LastOperation.DeepCopyInto(&out.LastOperation)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSummary.
-func (in *MachineSummary) DeepCopy() *MachineSummary {
- if in == nil {
- return nil
- }
- out := new(MachineSummary)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineTemplate) DeepCopyInto(out *MachineTemplate) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Template.DeepCopyInto(&out.Template)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplate.
-func (in *MachineTemplate) DeepCopy() *MachineTemplate {
- if in == nil {
- return nil
- }
- out := new(MachineTemplate)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineTemplate) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineTemplateList) DeepCopyInto(out *MachineTemplateList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]MachineTemplate, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateList.
-func (in *MachineTemplateList) DeepCopy() *MachineTemplateList {
- if in == nil {
- return nil
- }
- out := new(MachineTemplateList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *MachineTemplateList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.
-func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec {
- if in == nil {
- return nil
- }
- out := new(MachineTemplateSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate) {
- *out = *in
- if in.Capacity != nil {
- in, out := &in.Capacity, &out.Capacity
- *out = make(v1.ResourceList, len(*in))
- for key, val := range *in {
- (*out)[key] = val.DeepCopy()
- }
- }
- if in.VirtualCapacity != nil {
- in, out := &in.VirtualCapacity, &out.VirtualCapacity
- *out = make(v1.ResourceList, len(*in))
- for key, val := range *in {
- (*out)[key] = val.DeepCopy()
- }
- }
- if in.Architecture != nil {
- in, out := &in.Architecture, &out.Architecture
- *out = new(string)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplate.
-func (in *NodeTemplate) DeepCopy() *NodeTemplate {
- if in == nil {
- return nil
- }
- out := new(NodeTemplate)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateSpec.
-func (in *NodeTemplateSpec) DeepCopy() *NodeTemplateSpec {
- if in == nil {
- return nil
- }
- out := new(NodeTemplateSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig.
-func (in *RollbackConfig) DeepCopy() *RollbackConfig {
- if in == nil {
- return nil
- }
- out := new(RollbackConfig)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *RollingUpdateMachineDeployment) DeepCopyInto(out *RollingUpdateMachineDeployment) {
- *out = *in
- in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateMachineDeployment.
-func (in *RollingUpdateMachineDeployment) DeepCopy() *RollingUpdateMachineDeployment {
- if in == nil {
- return nil
- }
- out := new(RollingUpdateMachineDeployment)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *UpdateConfiguration) DeepCopyInto(out *UpdateConfiguration) {
- *out = *in
- if in.MaxUnavailable != nil {
- in, out := &in.MaxUnavailable, &out.MaxUnavailable
- *out = new(intstr.IntOrString)
- **out = **in
- }
- if in.MaxSurge != nil {
- in, out := &in.MaxSurge, &out.MaxSurge
- *out = new(intstr.IntOrString)
- **out = **in
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfiguration.
-func (in *UpdateConfiguration) DeepCopy() *UpdateConfiguration {
- if in == nil {
- return nil
- }
- out := new(UpdateConfiguration)
- in.DeepCopyInto(out)
- return out
-}
diff --git a/pkg/controller/deployment_machineset_util.go b/pkg/controller/deployment_machineset_util.go
index e44505393..6d352ca48 100644
--- a/pkg/controller/deployment_machineset_util.go
+++ b/pkg/controller/deployment_machineset_util.go
@@ -25,6 +25,7 @@ package controller
import (
"context"
"fmt"
+ "k8s.io/utils/ptr"
"reflect"
"k8s.io/klog/v2"
@@ -160,7 +161,7 @@ func calculateMachineSetStatus(is *v1alpha1.MachineSet, filteredMachines []*v1al
newStatus.ReadyReplicas = int32(readyReplicasCount) // #nosec G115 (CWE-190) -- number of machines will not exceed MaxInt32
newStatus.AvailableReplicas = int32(availableReplicasCount) // #nosec G115 (CWE-190) -- number of machines will not exceed MaxInt32
newStatus.LastOperation.LastUpdateTime = metav1.Now()
- newStatus.AutoPreserveFailedMachineCount = int32(autoPreserveFailedMachineCount) // #nosec G115 (CWE-190) -- number of machines will not exceed MaxInt32
+ newStatus.AutoPreserveFailedMachineCount = ptr.To(int32(autoPreserveFailedMachineCount)) // #nosec G115 (CWE-190) -- number of machines will not exceed MaxInt32
return newStatus
}
diff --git a/pkg/controller/machineset.go b/pkg/controller/machineset.go
index 1d1023cc5..120d39b06 100644
--- a/pkg/controller/machineset.go
+++ b/pkg/controller/machineset.go
@@ -508,7 +508,7 @@ func (c *controller) isMachineCandidateForPreservation(ctx context.Context, mach
return false, nil
}
}
- if machineSet.Status.AutoPreserveFailedMachineCount < machineSet.Spec.AutoPreserveFailedMachineMax {
+ if *machineSet.Status.AutoPreserveFailedMachineCount < *machineSet.Spec.AutoPreserveFailedMachineMax {
err := c.annotateMachineForAutoPreservation(ctx, machine)
if err != nil {
return true, err
diff --git a/pkg/openapi/api_violations.report b/pkg/openapi/api_violations.report
index 5cb955c9e..0861c8d4c 100644
--- a/pkg/openapi/api_violations.report
+++ b/pkg/openapi/api_violations.report
@@ -7,7 +7,6 @@ API rule violation: names_match,github.com/gardener/machine-controller-manager/p
API rule violation: names_match,github.com/gardener/machine-controller-manager/pkg/apis/machine/v1alpha1,MachineConfiguration,MachineDrainTimeout
API rule violation: names_match,github.com/gardener/machine-controller-manager/pkg/apis/machine/v1alpha1,MachineConfiguration,MachineHealthTimeout
API rule violation: names_match,github.com/gardener/machine-controller-manager/pkg/apis/machine/v1alpha1,MachineConfiguration,MachineInPlaceUpdateTimeout
-API rule violation: names_match,github.com/gardener/machine-controller-manager/pkg/apis/machine/v1alpha1,MachineConfiguration,MachinePreserveTimeout
API rule violation: names_match,github.com/gardener/machine-controller-manager/pkg/apis/machine/v1alpha1,MachineSetStatus,Conditions
API rule violation: names_match,github.com/gardener/machine-controller-manager/pkg/apis/machine/v1alpha1,MachineSpec,NodeTemplateSpec
API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI
diff --git a/pkg/openapi/openapi_generated.go b/pkg/openapi/openapi_generated.go
index b0cd12043..0db94f5b6 100644
--- a/pkg/openapi/openapi_generated.go
+++ b/pkg/openapi/openapi_generated.go
@@ -688,7 +688,7 @@ func schema_pkg_apis_machine_v1alpha1_MachineConfiguration(ref common.ReferenceC
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"),
},
},
- "preserveTimeout": {
+ "machinePreserveTimeout": {
SchemaProps: spec.SchemaProps{
Description: "MachinePreserveTimeout is the timeout after which the machine preservation is stopped",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"),
@@ -1494,7 +1494,7 @@ func schema_pkg_apis_machine_v1alpha1_MachineSpec(ref common.ReferenceCallback)
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"),
},
},
- "preserveTimeout": {
+ "machinePreserveTimeout": {
SchemaProps: spec.SchemaProps{
Description: "MachinePreserveTimeout is the timeout after which the machine preservation is stopped",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"),
diff --git a/pkg/util/provider/machinecontroller/machine_test.go b/pkg/util/provider/machinecontroller/machine_test.go
index 10eaad4de..62a6b7ed1 100644
--- a/pkg/util/provider/machinecontroller/machine_test.go
+++ b/pkg/util/provider/machinecontroller/machine_test.go
@@ -4036,9 +4036,9 @@ var _ = Describe("machine", func() {
machine.Status.CurrentStatus.Phase = tc.setup.phase
}
if tc.setup.oldPreserveValue == machineutils.PreserveMachineAnnotationValueNow || tc.setup.oldPreserveValue == machineutils.PreserveMachineAnnotationValuePreservedByMCM {
- machine.Status.CurrentStatus.PreserveExpiryTime = metav1.NewTime(metav1.Now().Add(1 * time.Hour))
+ machine.Status.CurrentStatus.PreserveExpiryTime = &metav1.Time{Time: metav1.Now().Add(1 * time.Hour)}
} else if tc.setup.oldPreserveValue == machineutils.PreserveMachineAnnotationValueWhenFailed && machineutils.IsMachineFailed(machine) {
- machine.Status.CurrentStatus.PreserveExpiryTime = metav1.NewTime(metav1.Now().Add(1 * time.Hour))
+ machine.Status.CurrentStatus.PreserveExpiryTime = &metav1.Time{Time: metav1.Now().Add(1 * time.Hour)}
}
controlMachineObjects := []runtime.Object{machine}
@@ -4273,7 +4273,7 @@ var _ = Describe("machine", func() {
nodeAnnotationValue string
nodeName string
machinePhase v1alpha1.MachinePhase
- preserveExpiryTime metav1.Time
+ preserveExpiryTime *metav1.Time
}
type expect struct {
retry machineutils.RetryPeriod
@@ -4450,7 +4450,7 @@ var _ = Describe("machine", func() {
nodeAnnotationValue: "false",
nodeName: "node-1",
machinePhase: v1alpha1.MachineRunning,
- preserveExpiryTime: metav1.NewTime(metav1.Now().Add(1 * time.Hour)),
+ preserveExpiryTime: &metav1.Time{Time: metav1.Now().Add(1 * time.Hour)},
},
expect: expect{
preserveExpiryTimeIsSet: false,
@@ -4479,7 +4479,7 @@ var _ = Describe("machine", func() {
nodeAnnotationValue: machineutils.PreserveMachineAnnotationValueNow,
nodeName: "node-1",
machinePhase: v1alpha1.MachineRunning,
- preserveExpiryTime: metav1.NewTime(metav1.Now().Add(-1 * time.Minute)),
+ preserveExpiryTime: &metav1.Time{Time: metav1.Now().Add(-1 * time.Minute)},
},
expect: expect{
preserveExpiryTimeIsSet: false,
diff --git a/pkg/util/provider/machinecontroller/machine_util.go b/pkg/util/provider/machinecontroller/machine_util.go
index ceea0339a..fe8bdaa97 100644
--- a/pkg/util/provider/machinecontroller/machine_util.go
+++ b/pkg/util/provider/machinecontroller/machine_util.go
@@ -1305,7 +1305,7 @@ func (c *controller) setMachineTerminationStatus(ctx context.Context, deleteMach
Phase: v1alpha1.MachineTerminating,
// TimeoutActive: false,
LastUpdateTime: metav1.Now(),
- PreserveExpiryTime: metav1.Time{},
+ PreserveExpiryTime: nil,
}
_, err := c.controlMachineClient.Machines(clone.Namespace).UpdateStatus(ctx, clone, metav1.UpdateOptions{})
@@ -2439,7 +2439,7 @@ func (c *controller) setPreserveExpiryTimeOnMachine(ctx context.Context, machine
Phase: machine.Status.CurrentStatus.Phase,
TimeoutActive: machine.Status.CurrentStatus.TimeoutActive,
LastUpdateTime: metav1.Now(),
- PreserveExpiryTime: metav1.NewTime(metav1.Now().Add(c.getEffectiveMachinePreserveTimeout(machine).Duration)),
+ PreserveExpiryTime: &metav1.Time{Time: metav1.Now().Add(c.getEffectiveMachinePreserveTimeout(machine).Duration)},
}
machine.Status.CurrentStatus = preservedCurrentStatus
@@ -2565,7 +2565,7 @@ func (c *controller) stopMachinePreservation(ctx context.Context, machine *v1alp
}
// Step 3: update machine status to set preserve expiry time to metav1.Time{}
clone := machine.DeepCopy()
- clone.Status.CurrentStatus.PreserveExpiryTime = metav1.Time{}
+ clone.Status.CurrentStatus.PreserveExpiryTime = nil
clone.Status.CurrentStatus.LastUpdateTime = metav1.Now()
_, err := c.controlMachineClient.Machines(clone.Namespace).UpdateStatus(ctx, clone, metav1.UpdateOptions{})
if err != nil {
diff --git a/pkg/util/provider/machinecontroller/machine_util_test.go b/pkg/util/provider/machinecontroller/machine_util_test.go
index 87581bda6..7e25d5ed2 100644
--- a/pkg/util/provider/machinecontroller/machine_util_test.go
+++ b/pkg/util/provider/machinecontroller/machine_util_test.go
@@ -3961,7 +3961,6 @@ var _ = Describe("machine_util", func() {
Describe("#preserveMachine", func() {
type setup struct {
machinePhase machinev1.MachinePhase
- preserveExpiryTime metav1.Time
nodeName string
preserveValue string
isCAAnnotationPresent bool
@@ -3998,7 +3997,7 @@ var _ = Describe("machine_util", func() {
CurrentStatus: machinev1.CurrentStatus{
Phase: tc.setup.machinePhase,
LastUpdateTime: metav1.Now(),
- PreserveExpiryTime: tc.setup.preserveExpiryTime,
+ PreserveExpiryTime: nil,
},
},
}
@@ -4244,7 +4243,7 @@ var _ = Describe("machine_util", func() {
CurrentStatus: machinev1.CurrentStatus{
Phase: machinev1.MachineFailed,
LastUpdateTime: metav1.Now(),
- PreserveExpiryTime: metav1.NewTime(time.Now().Add(10 * time.Minute)),
+ PreserveExpiryTime: &metav1.Time{Time: time.Now().Add(10 * time.Minute)},
},
},
}
From 179fae036dbc32ce0de025913ecaf085d5cb6294 Mon Sep 17 00:00:00 2001
From: thiyyakat
Date: Thu, 8 Jan 2026 12:24:57 +0530
Subject: [PATCH 41/43] Fix Makefile
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 6b0f4f913..aba0236ac 100644
--- a/Makefile
+++ b/Makefile
@@ -172,9 +172,9 @@ test-clean:
.PHONY: generate
generate: $(VGOPATH) $(DEEPCOPY_GEN) $(DEFAULTER_GEN) $(CONVERSION_GEN) $(OPENAPI_GEN) $(CONTROLLER_GEN) $(GEN_CRD_API_REFERENCE_DOCS)
- GOFLAGS="-buildvcs=false" $(CONTROLLER_GEN) crd paths=./pkg/apis/machine/v1alpha1/... output:crd:dir=kubernetes/crds output:stdout
- @GOFLAGS="-buildvcs=false" ./hack/generate-code
- @GOFLAGS="-buildvcs=false" ./hack/api-reference/generate-spec-doc.sh
+ $(CONTROLLER_GEN) crd paths=./pkg/apis/machine/v1alpha1/... output:crd:dir=kubernetes/crds output:stdout
+ @./hack/generate-code
+ @./hack/api-reference/generate-spec-doc.sh
.PHONY: add-license-headers
add-license-headers: $(GO_ADD_LICENSE)
From 0a825f8208caca52dbf8491eae775fc08dec9df5 Mon Sep 17 00:00:00 2001
From: thiyyakat
Date: Thu, 8 Jan 2026 13:54:32 +0530
Subject: [PATCH 42/43] Add crds
---
.../machine.sapcloud.io_machineclasses.yaml | 127 ++
...achine.sapcloud.io_machinedeployments.yaml | 562 ++++++++
.../crds/machine.sapcloud.io_machines.yaml | 333 +++++
.../crds/machine.sapcloud.io_machinesets.yaml | 447 +++++++
.../v1alpha1/zz_generated.conversion.go | 1179 +++++++++++++++++
.../machine/v1alpha1/zz_generated.deepcopy.go | 813 ++++++++++++
.../machine/v1alpha1/zz_generated.defaults.go | 21 +
pkg/apis/machine/zz_generated.deepcopy.go | 906 +++++++++++++
8 files changed, 4388 insertions(+)
create mode 100644 kubernetes/crds/machine.sapcloud.io_machineclasses.yaml
create mode 100644 kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml
create mode 100644 kubernetes/crds/machine.sapcloud.io_machines.yaml
create mode 100644 kubernetes/crds/machine.sapcloud.io_machinesets.yaml
create mode 100644 pkg/apis/machine/v1alpha1/zz_generated.conversion.go
create mode 100644 pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go
create mode 100644 pkg/apis/machine/v1alpha1/zz_generated.defaults.go
create mode 100644 pkg/apis/machine/zz_generated.deepcopy.go
diff --git a/kubernetes/crds/machine.sapcloud.io_machineclasses.yaml b/kubernetes/crds/machine.sapcloud.io_machineclasses.yaml
new file mode 100644
index 000000000..f0cd9d515
--- /dev/null
+++ b/kubernetes/crds/machine.sapcloud.io_machineclasses.yaml
@@ -0,0 +1,127 @@
+---
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ controller-gen.kubebuilder.io/version: v0.16.1
+ name: machineclasses.machine.sapcloud.io
+spec:
+ group: machine.sapcloud.io
+ names:
+ kind: MachineClass
+ listKind: MachineClassList
+ plural: machineclasses
+ shortNames:
+ - mcc
+ singular: machineclass
+ scope: Namespaced
+ versions:
+ - name: v1alpha1
+ schema:
+ openAPIV3Schema:
+ description: |-
+ MachineClass can be used to templatize and re-use provider configuration
+ across multiple Machines / MachineSets / MachineDeployments.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ credentialsSecretRef:
+ description: |-
+ 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.
+ properties:
+ name:
+ description: name is unique within a namespace to reference a secret
+ resource.
+ type: string
+ namespace:
+ description: namespace defines the space within which the secret name
+ must be unique.
+ type: string
+ type: object
+ x-kubernetes-map-type: atomic
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ nodeTemplate:
+ description: NodeTemplate contains subfields to track all node resources
+ and other node info required to scale nodegroup from zero
+ properties:
+ architecture:
+ description: CPU Architecture of the node belonging to nodeGroup
+ type: string
+ capacity:
+ additionalProperties:
+ anyOf:
+ - type: integer
+ - type: string
+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
+ x-kubernetes-int-or-string: true
+ description: Capacity contains subfields to track all node resources
+ required to scale nodegroup from zero
+ type: object
+ instanceType:
+ description: Instance type of the node belonging to nodeGroup
+ type: string
+ region:
+ description: Region of the expected node belonging to nodeGroup
+ type: string
+ virtualCapacity:
+ additionalProperties:
+ anyOf:
+ - type: integer
+ - type: string
+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
+ x-kubernetes-int-or-string: true
+ description: VirtualCapacity represents the expected Node 'virtual'
+ capacity ie comprising virtual extended resources.
+ type: object
+ zone:
+ description: Zone of the expected node belonging to nodeGroup
+ type: string
+ required:
+ - capacity
+ - instanceType
+ - region
+ - zone
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ provider:
+ description: Provider is the combination of name and location of cloud-specific
+ drivers.
+ type: string
+ providerSpec:
+ description: Provider-specific configuration to use during node creation.
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ secretRef:
+ description: SecretRef stores the necessary secrets such as credentials
+ or userdata.
+ properties:
+ name:
+ description: name is unique within a namespace to reference a secret
+ resource.
+ type: string
+ namespace:
+ description: namespace defines the space within which the secret name
+ must be unique.
+ type: string
+ type: object
+ x-kubernetes-map-type: atomic
+ required:
+ - providerSpec
+ type: object
+ served: true
+ storage: true
diff --git a/kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml b/kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml
new file mode 100644
index 000000000..abb36d1c4
--- /dev/null
+++ b/kubernetes/crds/machine.sapcloud.io_machinedeployments.yaml
@@ -0,0 +1,562 @@
+---
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ controller-gen.kubebuilder.io/version: v0.16.1
+ name: machinedeployments.machine.sapcloud.io
+spec:
+ group: machine.sapcloud.io
+ names:
+ kind: MachineDeployment
+ listKind: MachineDeploymentList
+ plural: machinedeployments
+ shortNames:
+ - mcd
+ singular: machinedeployment
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Total number of ready machines targeted by this machine deployment.
+ jsonPath: .status.readyReplicas
+ name: Ready
+ type: integer
+ - description: Number of desired machines.
+ jsonPath: .spec.replicas
+ name: Desired
+ type: integer
+ - description: Total number of non-terminated machines targeted by this machine
+ deployment that have the desired template spec.
+ jsonPath: .status.updatedReplicas
+ name: Up-to-date
+ type: integer
+ - description: Total number of available machines (ready for at least minReadySeconds)
+ targeted by this machine deployment.
+ jsonPath: .status.availableReplicas
+ name: Available
+ type: integer
+ - description: |-
+ CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
+ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ name: v1alpha1
+ schema:
+ openAPIV3Schema:
+ description: MachineDeployment enables declarative updates for machines and
+ MachineSets.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: Specification of the desired behavior of the MachineDeployment.
+ properties:
+ autoPreserveFailedMachineMax:
+ description: |-
+ The maximum number of machines in the machine deployment that will 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
+ format: int32
+ type: integer
+ minReadySeconds:
+ description: |-
+ 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)
+ format: int32
+ type: integer
+ paused:
+ description: |-
+ Indicates that the MachineDeployment is paused and will not be processed by the
+ MachineDeployment controller.
+ type: boolean
+ progressDeadlineSeconds:
+ description: |-
+ 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.
+ format: int32
+ type: integer
+ replicas:
+ description: |-
+ Number of desired machines. This is a pointer to distinguish between explicit
+ zero and not specified. Defaults to 0.
+ format: int32
+ type: integer
+ revisionHistoryLimit:
+ description: |-
+ The number of old MachineSets to retain to allow rollback.
+ This is a pointer to distinguish between explicit zero and not specified.
+ format: int32
+ type: integer
+ rollbackTo:
+ description: |-
+ DEPRECATED.
+ The config this MachineDeployment is rolling back to. Will be cleared after rollback is done.
+ properties:
+ revision:
+ description: The revision to rollback to. If set to 0, rollback
+ to the last revision.
+ format: int64
+ type: integer
+ type: object
+ selector:
+ description: |-
+ Label selector for machines. Existing MachineSets whose machines are
+ selected by this will be the ones affected by this MachineDeployment.
+ properties:
+ matchExpressions:
+ description: matchExpressions is a list of label selector requirements.
+ The requirements are ANDed.
+ items:
+ description: |-
+ A label selector requirement is a selector that contains values, a key, and an operator that
+ relates the key and values.
+ properties:
+ key:
+ description: key is the label key that the selector applies
+ to.
+ type: string
+ operator:
+ description: |-
+ operator represents a key's relationship to a set of values.
+ Valid operators are In, NotIn, Exists and DoesNotExist.
+ type: string
+ values:
+ description: |-
+ values is an array of string values. If the operator is In or NotIn,
+ the values array must be non-empty. If the operator is Exists or DoesNotExist,
+ the values array must be empty. This array is replaced during a strategic
+ merge patch.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ required:
+ - key
+ - operator
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ matchLabels:
+ additionalProperties:
+ type: string
+ description: |-
+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
+ map is equivalent to an element of matchExpressions, whose key field is "key", the
+ operator is "In", and the values array contains only "value". The requirements are ANDed.
+ type: object
+ type: object
+ x-kubernetes-map-type: atomic
+ strategy:
+ description: The MachineDeployment strategy to use to replace existing
+ machines with new ones.
+ properties:
+ inPlaceUpdate:
+ description: |-
+ InPlaceUpdate update config params. Present only if MachineDeploymentStrategyType =
+ InPlaceUpdate.
+ properties:
+ maxSurge:
+ anyOf:
+ - type: integer
+ - type: string
+ description: |-
+ 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.
+ x-kubernetes-int-or-string: true
+ maxUnavailable:
+ anyOf:
+ - type: integer
+ - type: string
+ description: |-
+ 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.
+ x-kubernetes-int-or-string: true
+ orchestrationType:
+ description: OrchestrationType specifies the orchestration
+ type for the inplace update.
+ type: string
+ type: object
+ rollingUpdate:
+ description: |-
+ Rolling update config params. Present only if MachineDeploymentStrategyType =
+ RollingUpdate.
+ properties:
+ maxSurge:
+ anyOf:
+ - type: integer
+ - type: string
+ description: |-
+ 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.
+ x-kubernetes-int-or-string: true
+ maxUnavailable:
+ anyOf:
+ - type: integer
+ - type: string
+ description: |-
+ 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.
+ x-kubernetes-int-or-string: true
+ type: object
+ type:
+ description: Type of MachineDeployment. Can be "Recreate" or "RollingUpdate".
+ Default is RollingUpdate.
+ type: string
+ type: object
+ template:
+ description: Template describes the machines that will be created.
+ properties:
+ metadata:
+ description: |-
+ Standard object's metadata.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ description: |-
+ 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
+ properties:
+ class:
+ description: Class contains the machineclass attributes of
+ a machine
+ properties:
+ apiGroup:
+ description: API group to which it belongs
+ type: string
+ kind:
+ description: Kind for machine class
+ type: string
+ name:
+ description: Name of machine class
+ type: string
+ type: object
+ creationTimeout:
+ description: MachineCreationTimeout is the timeout after which
+ machinie creation is declared failed.
+ type: string
+ disableHealthTimeout:
+ description: |-
+ 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.
+ type: boolean
+ drainTimeout:
+ description: MachineDraintimeout is the timeout after which
+ machine is forcefully deleted.
+ type: string
+ healthTimeout:
+ description: MachineHealthTimeout is the timeout after which
+ machine is declared unhealhty/failed.
+ type: string
+ inPlaceUpdateTimeout:
+ description: MachineInPlaceUpdateTimeout is the timeout after
+ which in-place update is declared failed.
+ type: string
+ machinePreserveTimeout:
+ description: MachinePreserveTimeout is the timeout after which
+ the machine preservation is stopped
+ type: string
+ maxEvictRetries:
+ description: MaxEvictRetries is the number of retries that
+ will be attempted while draining the node.
+ format: int32
+ type: integer
+ nodeConditions:
+ description: NodeConditions are the set of conditions if set
+ to true for MachineHealthTimeOut, machine will be declared
+ failed.
+ type: string
+ nodeTemplate:
+ description: NodeTemplateSpec describes the data a node should
+ have when created from a template
+ properties:
+ metadata:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ description: NodeSpec describes the attributes that a
+ node is created with.
+ properties:
+ configSource:
+ description: 'Deprecated: Previously used to specify
+ the source of the node''s configuration for the
+ DynamicKubeletConfig feature. This feature is removed.'
+ properties:
+ configMap:
+ description: ConfigMap is a reference to a Node's
+ ConfigMap
+ properties:
+ kubeletConfigKey:
+ description: |-
+ KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
+ This field is required in all cases.
+ type: string
+ name:
+ description: |-
+ Name is the metadata.name of the referenced ConfigMap.
+ This field is required in all cases.
+ type: string
+ namespace:
+ description: |-
+ Namespace is the metadata.namespace of the referenced ConfigMap.
+ This field is required in all cases.
+ type: string
+ resourceVersion:
+ description: |-
+ ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
+ This field is forbidden in Node.Spec, and required in Node.Status.
+ type: string
+ uid:
+ description: |-
+ UID is the metadata.UID of the referenced ConfigMap.
+ This field is forbidden in Node.Spec, and required in Node.Status.
+ type: string
+ required:
+ - kubeletConfigKey
+ - name
+ - namespace
+ type: object
+ type: object
+ externalID:
+ description: |-
+ Deprecated. Not all kubelets will set this field. Remove field after 1.13.
+ see: https://issues.k8s.io/61966
+ type: string
+ podCIDR:
+ description: PodCIDR represents the pod IP range assigned
+ to the node.
+ type: string
+ podCIDRs:
+ description: |-
+ podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
+ field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
+ each of IPv4 and IPv6.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ providerID:
+ description: 'ID of the node assigned by the cloud
+ provider in the format: ://'
+ type: string
+ taints:
+ description: If specified, the node's taints.
+ items:
+ description: |-
+ The node this Taint is attached to has the "effect" on
+ any pod that does not tolerate the Taint.
+ properties:
+ effect:
+ description: |-
+ Required. The effect of the taint on pods
+ that do not tolerate the taint.
+ Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
+ type: string
+ key:
+ description: Required. The taint key to be applied
+ to a node.
+ type: string
+ timeAdded:
+ description: |-
+ TimeAdded represents the time at which the taint was added.
+ It is only written for NoExecute taints.
+ format: date-time
+ type: string
+ value:
+ description: The taint value corresponding to
+ the taint key.
+ type: string
+ required:
+ - effect
+ - key
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ unschedulable:
+ description: |-
+ Unschedulable controls node schedulability of new pods. By default, node is schedulable.
+ More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
+ type: boolean
+ type: object
+ type: object
+ providerID:
+ description: ProviderID represents the provider's unique ID
+ given to a machine
+ type: string
+ type: object
+ type: object
+ required:
+ - template
+ type: object
+ status:
+ description: Most recently observed status of the MachineDeployment.
+ properties:
+ availableReplicas:
+ description: Total number of available machines (ready for at least
+ minReadySeconds) targeted by this MachineDeployment.
+ format: int32
+ type: integer
+ collisionCount:
+ description: |-
+ 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.
+ format: int32
+ type: integer
+ conditions:
+ description: Represents the latest available observations of a MachineDeployment's
+ current state.
+ items:
+ description: MachineDeploymentCondition describes the state of a
+ MachineDeployment at a certain point.
+ properties:
+ lastTransitionTime:
+ description: Last time the condition transitioned from one status
+ to another.
+ format: date-time
+ type: string
+ lastUpdateTime:
+ description: The last time this condition was updated.
+ format: date-time
+ type: string
+ message:
+ description: A human readable message indicating details about
+ the transition.
+ type: string
+ reason:
+ description: The reason for the condition's last transition.
+ type: string
+ status:
+ description: Status of the condition, one of True, False, Unknown.
+ type: string
+ type:
+ description: Type of MachineDeployment condition.
+ type: string
+ required:
+ - status
+ - type
+ type: object
+ type: array
+ failedMachines:
+ description: FailedMachines has summary of machines on which lastOperation
+ Failed
+ items:
+ description: MachineSummary store the summary of machine.
+ properties:
+ lastOperation:
+ description: Last operation refers to the status of the last
+ operation performed
+ properties:
+ description:
+ description: Description of the current operation
+ type: string
+ errorCode:
+ description: ErrorCode of the current operation if any
+ type: string
+ lastUpdateTime:
+ description: Last update time of current operation
+ format: date-time
+ type: string
+ state:
+ description: State of operation
+ type: string
+ type:
+ description: Type of operation
+ type: string
+ type: object
+ name:
+ description: Name of the machine object
+ type: string
+ ownerRef:
+ description: OwnerRef
+ type: string
+ providerID:
+ description: ProviderID represents the provider's unique ID
+ given to a machine
+ type: string
+ type: object
+ type: array
+ observedGeneration:
+ description: The generation observed by the MachineDeployment controller.
+ format: int64
+ type: integer
+ readyReplicas:
+ description: Total number of ready machines targeted by this MachineDeployment.
+ format: int32
+ type: integer
+ replicas:
+ description: Total number of non-terminated machines targeted by this
+ MachineDeployment (their labels match the selector).
+ format: int32
+ type: integer
+ unavailableReplicas:
+ description: |-
+ 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 or machines that still have not been created.
+ format: int32
+ type: integer
+ updatedReplicas:
+ description: Total number of non-terminated machines targeted by this
+ MachineDeployment that have the desired template spec.
+ format: int32
+ type: integer
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ scale:
+ specReplicasPath: .spec.replicas
+ statusReplicasPath: .status.replicas
+ status: {}
diff --git a/kubernetes/crds/machine.sapcloud.io_machines.yaml b/kubernetes/crds/machine.sapcloud.io_machines.yaml
new file mode 100644
index 000000000..fcea16750
--- /dev/null
+++ b/kubernetes/crds/machine.sapcloud.io_machines.yaml
@@ -0,0 +1,333 @@
+---
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ controller-gen.kubebuilder.io/version: v0.16.1
+ name: machines.machine.sapcloud.io
+spec:
+ group: machine.sapcloud.io
+ names:
+ kind: Machine
+ listKind: MachineList
+ plural: machines
+ shortNames:
+ - mc
+ singular: machine
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Current status of the machine.
+ jsonPath: .status.currentStatus.phase
+ name: Status
+ type: string
+ - description: |-
+ CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
+ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ - description: Node backing the machine object
+ jsonPath: .metadata.labels.node
+ name: Node
+ type: string
+ - description: ProviderID of the infra instance backing the machine object
+ jsonPath: .spec.providerID
+ name: ProviderID
+ priority: 1
+ type: string
+ name: v1alpha1
+ schema:
+ openAPIV3Schema:
+ description: Machine is the representation of a physical or virtual machine.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: Spec contains the specification of the machine
+ properties:
+ class:
+ description: Class contains the machineclass attributes of a machine
+ properties:
+ apiGroup:
+ description: API group to which it belongs
+ type: string
+ kind:
+ description: Kind for machine class
+ type: string
+ name:
+ description: Name of machine class
+ type: string
+ type: object
+ creationTimeout:
+ description: MachineCreationTimeout is the timeout after which machinie
+ creation is declared failed.
+ type: string
+ disableHealthTimeout:
+ description: |-
+ 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.
+ type: boolean
+ drainTimeout:
+ description: MachineDraintimeout is the timeout after which machine
+ is forcefully deleted.
+ type: string
+ healthTimeout:
+ description: MachineHealthTimeout is the timeout after which machine
+ is declared unhealhty/failed.
+ type: string
+ inPlaceUpdateTimeout:
+ description: MachineInPlaceUpdateTimeout is the timeout after which
+ in-place update is declared failed.
+ type: string
+ machinePreserveTimeout:
+ description: MachinePreserveTimeout is the timeout after which the
+ machine preservation is stopped
+ type: string
+ maxEvictRetries:
+ description: MaxEvictRetries is the number of retries that will be
+ attempted while draining the node.
+ format: int32
+ type: integer
+ nodeConditions:
+ description: NodeConditions are the set of conditions if set to true
+ for MachineHealthTimeOut, machine will be declared failed.
+ type: string
+ nodeTemplate:
+ description: NodeTemplateSpec describes the data a node should have
+ when created from a template
+ properties:
+ metadata:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ description: NodeSpec describes the attributes that a node is
+ created with.
+ properties:
+ configSource:
+ description: 'Deprecated: Previously used to specify the source
+ of the node''s configuration for the DynamicKubeletConfig
+ feature. This feature is removed.'
+ properties:
+ configMap:
+ description: ConfigMap is a reference to a Node's ConfigMap
+ properties:
+ kubeletConfigKey:
+ description: |-
+ KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
+ This field is required in all cases.
+ type: string
+ name:
+ description: |-
+ Name is the metadata.name of the referenced ConfigMap.
+ This field is required in all cases.
+ type: string
+ namespace:
+ description: |-
+ Namespace is the metadata.namespace of the referenced ConfigMap.
+ This field is required in all cases.
+ type: string
+ resourceVersion:
+ description: |-
+ ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
+ This field is forbidden in Node.Spec, and required in Node.Status.
+ type: string
+ uid:
+ description: |-
+ UID is the metadata.UID of the referenced ConfigMap.
+ This field is forbidden in Node.Spec, and required in Node.Status.
+ type: string
+ required:
+ - kubeletConfigKey
+ - name
+ - namespace
+ type: object
+ type: object
+ externalID:
+ description: |-
+ Deprecated. Not all kubelets will set this field. Remove field after 1.13.
+ see: https://issues.k8s.io/61966
+ type: string
+ podCIDR:
+ description: PodCIDR represents the pod IP range assigned
+ to the node.
+ type: string
+ podCIDRs:
+ description: |-
+ podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
+ field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
+ each of IPv4 and IPv6.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ providerID:
+ description: 'ID of the node assigned by the cloud provider
+ in the format: ://'
+ type: string
+ taints:
+ description: If specified, the node's taints.
+ items:
+ description: |-
+ The node this Taint is attached to has the "effect" on
+ any pod that does not tolerate the Taint.
+ properties:
+ effect:
+ description: |-
+ Required. The effect of the taint on pods
+ that do not tolerate the taint.
+ Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
+ type: string
+ key:
+ description: Required. The taint key to be applied to
+ a node.
+ type: string
+ timeAdded:
+ description: |-
+ TimeAdded represents the time at which the taint was added.
+ It is only written for NoExecute taints.
+ format: date-time
+ type: string
+ value:
+ description: The taint value corresponding to the taint
+ key.
+ type: string
+ required:
+ - effect
+ - key
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ unschedulable:
+ description: |-
+ Unschedulable controls node schedulability of new pods. By default, node is schedulable.
+ More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
+ type: boolean
+ type: object
+ type: object
+ providerID:
+ description: ProviderID represents the provider's unique ID given
+ to a machine
+ type: string
+ type: object
+ status:
+ description: Status contains fields depicting the status
+ properties:
+ addresses:
+ description: |-
+ 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.
+ items:
+ description: NodeAddress contains information for the node's address.
+ properties:
+ address:
+ description: The node address.
+ type: string
+ type:
+ description: Node address type, one of Hostname, ExternalIP
+ or InternalIP.
+ type: string
+ required:
+ - address
+ - type
+ type: object
+ type: array
+ conditions:
+ description: Conditions of this machine, same as node
+ items:
+ description: NodeCondition contains condition information for a
+ node.
+ properties:
+ lastHeartbeatTime:
+ description: Last time we got an update on a given condition.
+ format: date-time
+ type: string
+ lastTransitionTime:
+ description: Last time the condition transit from one status
+ to another.
+ format: date-time
+ type: string
+ message:
+ description: Human readable message indicating details about
+ last transition.
+ type: string
+ reason:
+ description: (brief) reason for the condition's last transition.
+ type: string
+ status:
+ description: Status of the condition, one of True, False, Unknown.
+ type: string
+ type:
+ description: Type of node condition.
+ type: string
+ required:
+ - status
+ - type
+ type: object
+ type: array
+ currentStatus:
+ description: Current status of the machine object
+ properties:
+ lastUpdateTime:
+ description: Last update time of current status
+ format: date-time
+ type: string
+ phase:
+ description: MachinePhase is a label for the condition of a machine
+ at the current time.
+ type: string
+ preserveExpiryTime:
+ description: PreserveExpiryTime is the time at which MCM will
+ stop preserving the machine
+ format: date-time
+ type: string
+ timeoutActive:
+ type: boolean
+ type: object
+ lastKnownState:
+ description: |-
+ 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
+ type: string
+ lastOperation:
+ description: Last operation refers to the status of the last operation
+ performed
+ properties:
+ description:
+ description: Description of the current operation
+ type: string
+ errorCode:
+ description: ErrorCode of the current operation if any
+ type: string
+ lastUpdateTime:
+ description: Last update time of current operation
+ format: date-time
+ type: string
+ state:
+ description: State of operation
+ type: string
+ type:
+ description: Type of operation
+ type: string
+ type: object
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/kubernetes/crds/machine.sapcloud.io_machinesets.yaml b/kubernetes/crds/machine.sapcloud.io_machinesets.yaml
new file mode 100644
index 000000000..46445131f
--- /dev/null
+++ b/kubernetes/crds/machine.sapcloud.io_machinesets.yaml
@@ -0,0 +1,447 @@
+---
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ controller-gen.kubebuilder.io/version: v0.16.1
+ name: machinesets.machine.sapcloud.io
+spec:
+ group: machine.sapcloud.io
+ names:
+ kind: MachineSet
+ listKind: MachineSetList
+ plural: machinesets
+ shortNames:
+ - mcs
+ singular: machineset
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Number of desired replicas.
+ jsonPath: .spec.replicas
+ name: Desired
+ type: integer
+ - description: Number of actual replicas.
+ jsonPath: .status.replicas
+ name: Current
+ type: integer
+ - description: Number of ready replicas for this machine set.
+ jsonPath: .status.readyReplicas
+ name: Ready
+ type: integer
+ - description: |-
+ CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
+ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ name: v1alpha1
+ schema:
+ openAPIV3Schema:
+ description: MachineSet TODO
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: MachineSetSpec is the specification of a MachineSet.
+ properties:
+ autoPreserveFailedMachineMax:
+ format: int32
+ type: integer
+ machineClass:
+ description: ClassSpec is the class specification of machine
+ properties:
+ apiGroup:
+ description: API group to which it belongs
+ type: string
+ kind:
+ description: Kind for machine class
+ type: string
+ name:
+ description: Name of machine class
+ type: string
+ type: object
+ minReadySeconds:
+ format: int32
+ type: integer
+ replicas:
+ format: int32
+ type: integer
+ selector:
+ description: |-
+ A label selector is a label query over a set of resources. The result of matchLabels and
+ matchExpressions are ANDed. An empty label selector matches all objects. A null
+ label selector matches no objects.
+ properties:
+ matchExpressions:
+ description: matchExpressions is a list of label selector requirements.
+ The requirements are ANDed.
+ items:
+ description: |-
+ A label selector requirement is a selector that contains values, a key, and an operator that
+ relates the key and values.
+ properties:
+ key:
+ description: key is the label key that the selector applies
+ to.
+ type: string
+ operator:
+ description: |-
+ operator represents a key's relationship to a set of values.
+ Valid operators are In, NotIn, Exists and DoesNotExist.
+ type: string
+ values:
+ description: |-
+ values is an array of string values. If the operator is In or NotIn,
+ the values array must be non-empty. If the operator is Exists or DoesNotExist,
+ the values array must be empty. This array is replaced during a strategic
+ merge patch.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ required:
+ - key
+ - operator
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ matchLabels:
+ additionalProperties:
+ type: string
+ description: |-
+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
+ map is equivalent to an element of matchExpressions, whose key field is "key", the
+ operator is "In", and the values array contains only "value". The requirements are ANDed.
+ type: object
+ type: object
+ x-kubernetes-map-type: atomic
+ template:
+ description: MachineTemplateSpec describes the data a machine should
+ have when created from a template
+ properties:
+ metadata:
+ description: |-
+ Standard object's metadata.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ description: |-
+ 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
+ properties:
+ class:
+ description: Class contains the machineclass attributes of
+ a machine
+ properties:
+ apiGroup:
+ description: API group to which it belongs
+ type: string
+ kind:
+ description: Kind for machine class
+ type: string
+ name:
+ description: Name of machine class
+ type: string
+ type: object
+ creationTimeout:
+ description: MachineCreationTimeout is the timeout after which
+ machinie creation is declared failed.
+ type: string
+ disableHealthTimeout:
+ description: |-
+ 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.
+ type: boolean
+ drainTimeout:
+ description: MachineDraintimeout is the timeout after which
+ machine is forcefully deleted.
+ type: string
+ healthTimeout:
+ description: MachineHealthTimeout is the timeout after which
+ machine is declared unhealhty/failed.
+ type: string
+ inPlaceUpdateTimeout:
+ description: MachineInPlaceUpdateTimeout is the timeout after
+ which in-place update is declared failed.
+ type: string
+ machinePreserveTimeout:
+ description: MachinePreserveTimeout is the timeout after which
+ the machine preservation is stopped
+ type: string
+ maxEvictRetries:
+ description: MaxEvictRetries is the number of retries that
+ will be attempted while draining the node.
+ format: int32
+ type: integer
+ nodeConditions:
+ description: NodeConditions are the set of conditions if set
+ to true for MachineHealthTimeOut, machine will be declared
+ failed.
+ type: string
+ nodeTemplate:
+ description: NodeTemplateSpec describes the data a node should
+ have when created from a template
+ properties:
+ metadata:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ description: NodeSpec describes the attributes that a
+ node is created with.
+ properties:
+ configSource:
+ description: 'Deprecated: Previously used to specify
+ the source of the node''s configuration for the
+ DynamicKubeletConfig feature. This feature is removed.'
+ properties:
+ configMap:
+ description: ConfigMap is a reference to a Node's
+ ConfigMap
+ properties:
+ kubeletConfigKey:
+ description: |-
+ KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
+ This field is required in all cases.
+ type: string
+ name:
+ description: |-
+ Name is the metadata.name of the referenced ConfigMap.
+ This field is required in all cases.
+ type: string
+ namespace:
+ description: |-
+ Namespace is the metadata.namespace of the referenced ConfigMap.
+ This field is required in all cases.
+ type: string
+ resourceVersion:
+ description: |-
+ ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
+ This field is forbidden in Node.Spec, and required in Node.Status.
+ type: string
+ uid:
+ description: |-
+ UID is the metadata.UID of the referenced ConfigMap.
+ This field is forbidden in Node.Spec, and required in Node.Status.
+ type: string
+ required:
+ - kubeletConfigKey
+ - name
+ - namespace
+ type: object
+ type: object
+ externalID:
+ description: |-
+ Deprecated. Not all kubelets will set this field. Remove field after 1.13.
+ see: https://issues.k8s.io/61966
+ type: string
+ podCIDR:
+ description: PodCIDR represents the pod IP range assigned
+ to the node.
+ type: string
+ podCIDRs:
+ description: |-
+ podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
+ field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
+ each of IPv4 and IPv6.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ providerID:
+ description: 'ID of the node assigned by the cloud
+ provider in the format: ://'
+ type: string
+ taints:
+ description: If specified, the node's taints.
+ items:
+ description: |-
+ The node this Taint is attached to has the "effect" on
+ any pod that does not tolerate the Taint.
+ properties:
+ effect:
+ description: |-
+ Required. The effect of the taint on pods
+ that do not tolerate the taint.
+ Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
+ type: string
+ key:
+ description: Required. The taint key to be applied
+ to a node.
+ type: string
+ timeAdded:
+ description: |-
+ TimeAdded represents the time at which the taint was added.
+ It is only written for NoExecute taints.
+ format: date-time
+ type: string
+ value:
+ description: The taint value corresponding to
+ the taint key.
+ type: string
+ required:
+ - effect
+ - key
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ unschedulable:
+ description: |-
+ Unschedulable controls node schedulability of new pods. By default, node is schedulable.
+ More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
+ type: boolean
+ type: object
+ type: object
+ providerID:
+ description: ProviderID represents the provider's unique ID
+ given to a machine
+ type: string
+ type: object
+ type: object
+ type: object
+ status:
+ description: MachineSetStatus holds the most recently observed status
+ of MachineSet.
+ properties:
+ autoPreserveFailedMachineCount:
+ description: AutoPreserveFailedMachineCount has a count of the number
+ of failed machines in the machineset that have been auto-preserved
+ format: int32
+ type: integer
+ availableReplicas:
+ description: The number of available replicas (ready for at least
+ minReadySeconds) for this replica set.
+ format: int32
+ type: integer
+ failedMachines:
+ description: FailedMachines has summary of machines on which lastOperation
+ Failed
+ items:
+ description: MachineSummary store the summary of machine.
+ properties:
+ lastOperation:
+ description: Last operation refers to the status of the last
+ operation performed
+ properties:
+ description:
+ description: Description of the current operation
+ type: string
+ errorCode:
+ description: ErrorCode of the current operation if any
+ type: string
+ lastUpdateTime:
+ description: Last update time of current operation
+ format: date-time
+ type: string
+ state:
+ description: State of operation
+ type: string
+ type:
+ description: Type of operation
+ type: string
+ type: object
+ name:
+ description: Name of the machine object
+ type: string
+ ownerRef:
+ description: OwnerRef
+ type: string
+ providerID:
+ description: ProviderID represents the provider's unique ID
+ given to a machine
+ type: string
+ type: object
+ type: array
+ fullyLabeledReplicas:
+ description: The number of pods that have labels matching the labels
+ of the pod template of the replicaset.
+ format: int32
+ type: integer
+ lastOperation:
+ description: LastOperation performed
+ properties:
+ description:
+ description: Description of the current operation
+ type: string
+ errorCode:
+ description: ErrorCode of the current operation if any
+ type: string
+ lastUpdateTime:
+ description: Last update time of current operation
+ format: date-time
+ type: string
+ state:
+ description: State of operation
+ type: string
+ type:
+ description: Type of operation
+ type: string
+ type: object
+ machineSetCondition:
+ description: Represents the latest available observations of a replica
+ set's current state.
+ items:
+ description: MachineSetCondition describes the state of a machine
+ set at a certain point.
+ properties:
+ lastTransitionTime:
+ description: The last time the condition transitioned from one
+ status to another.
+ format: date-time
+ type: string
+ message:
+ description: A human readable message indicating details about
+ the transition.
+ type: string
+ reason:
+ description: The reason for the condition's last transition.
+ type: string
+ status:
+ description: Status of the condition, one of True, False, Unknown.
+ type: string
+ type:
+ description: Type of machine set condition.
+ type: string
+ required:
+ - status
+ - type
+ type: object
+ type: array
+ observedGeneration:
+ description: ObservedGeneration is the most recent generation observed
+ by the controller.
+ format: int64
+ type: integer
+ readyReplicas:
+ description: The number of ready replicas for this replica set.
+ format: int32
+ type: integer
+ replicas:
+ description: Replicas is the number of actual replicas.
+ format: int32
+ type: integer
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ scale:
+ specReplicasPath: .spec.replicas
+ statusReplicasPath: .status.replicas
+ status: {}
diff --git a/pkg/apis/machine/v1alpha1/zz_generated.conversion.go b/pkg/apis/machine/v1alpha1/zz_generated.conversion.go
new file mode 100644
index 000000000..d503e95ae
--- /dev/null
+++ b/pkg/apis/machine/v1alpha1/zz_generated.conversion.go
@@ -0,0 +1,1179 @@
+//go:build !ignore_autogenerated
+// +build !ignore_autogenerated
+
+// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
+//
+// SPDX-License-Identifier: Apache-2.0
+
+// Code generated by conversion-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ unsafe "unsafe"
+
+ machine "github.com/gardener/machine-controller-manager/pkg/apis/machine"
+ corev1 "k8s.io/api/core/v1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ conversion "k8s.io/apimachinery/pkg/conversion"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ intstr "k8s.io/apimachinery/pkg/util/intstr"
+)
+
+func init() {
+ localSchemeBuilder.Register(RegisterConversions)
+}
+
+// RegisterConversions adds conversion functions to the given scheme.
+// Public to allow building arbitrary schemes.
+func RegisterConversions(s *runtime.Scheme) error {
+ if err := s.AddGeneratedConversionFunc((*ClassSpec)(nil), (*machine.ClassSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(a.(*ClassSpec), b.(*machine.ClassSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.ClassSpec)(nil), (*ClassSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(a.(*machine.ClassSpec), b.(*ClassSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*CurrentStatus)(nil), (*machine.CurrentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(a.(*CurrentStatus), b.(*machine.CurrentStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.CurrentStatus)(nil), (*CurrentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(a.(*machine.CurrentStatus), b.(*CurrentStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*InPlaceUpdateMachineDeployment)(nil), (*machine.InPlaceUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(a.(*InPlaceUpdateMachineDeployment), b.(*machine.InPlaceUpdateMachineDeployment), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.InPlaceUpdateMachineDeployment)(nil), (*InPlaceUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(a.(*machine.InPlaceUpdateMachineDeployment), b.(*InPlaceUpdateMachineDeployment), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*LastOperation)(nil), (*machine.LastOperation)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LastOperation_To_machine_LastOperation(a.(*LastOperation), b.(*machine.LastOperation), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.LastOperation)(nil), (*LastOperation)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_LastOperation_To_v1alpha1_LastOperation(a.(*machine.LastOperation), b.(*LastOperation), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*Machine)(nil), (*machine.Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_Machine_To_machine_Machine(a.(*Machine), b.(*machine.Machine), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.Machine)(nil), (*Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_Machine_To_v1alpha1_Machine(a.(*machine.Machine), b.(*Machine), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineClass)(nil), (*machine.MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineClass_To_machine_MachineClass(a.(*MachineClass), b.(*machine.MachineClass), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineClass)(nil), (*MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineClass_To_v1alpha1_MachineClass(a.(*machine.MachineClass), b.(*MachineClass), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineClassList)(nil), (*machine.MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineClassList_To_machine_MachineClassList(a.(*MachineClassList), b.(*machine.MachineClassList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineClassList)(nil), (*MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineClassList_To_v1alpha1_MachineClassList(a.(*machine.MachineClassList), b.(*MachineClassList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineConfiguration)(nil), (*machine.MachineConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(a.(*MachineConfiguration), b.(*machine.MachineConfiguration), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineConfiguration)(nil), (*MachineConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(a.(*machine.MachineConfiguration), b.(*MachineConfiguration), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineDeployment)(nil), (*machine.MachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(a.(*MachineDeployment), b.(*machine.MachineDeployment), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineDeployment)(nil), (*MachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(a.(*machine.MachineDeployment), b.(*MachineDeployment), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineDeploymentCondition)(nil), (*machine.MachineDeploymentCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(a.(*MachineDeploymentCondition), b.(*machine.MachineDeploymentCondition), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentCondition)(nil), (*MachineDeploymentCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(a.(*machine.MachineDeploymentCondition), b.(*MachineDeploymentCondition), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineDeploymentList)(nil), (*machine.MachineDeploymentList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(a.(*MachineDeploymentList), b.(*machine.MachineDeploymentList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentList)(nil), (*MachineDeploymentList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(a.(*machine.MachineDeploymentList), b.(*MachineDeploymentList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineDeploymentSpec)(nil), (*machine.MachineDeploymentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(a.(*MachineDeploymentSpec), b.(*machine.MachineDeploymentSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentSpec)(nil), (*MachineDeploymentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(a.(*machine.MachineDeploymentSpec), b.(*MachineDeploymentSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineDeploymentStatus)(nil), (*machine.MachineDeploymentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(a.(*MachineDeploymentStatus), b.(*machine.MachineDeploymentStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentStatus)(nil), (*MachineDeploymentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(a.(*machine.MachineDeploymentStatus), b.(*MachineDeploymentStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineDeploymentStrategy)(nil), (*machine.MachineDeploymentStrategy)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(a.(*MachineDeploymentStrategy), b.(*machine.MachineDeploymentStrategy), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineDeploymentStrategy)(nil), (*MachineDeploymentStrategy)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(a.(*machine.MachineDeploymentStrategy), b.(*MachineDeploymentStrategy), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineList)(nil), (*machine.MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineList_To_machine_MachineList(a.(*MachineList), b.(*machine.MachineList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineList)(nil), (*MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineList_To_v1alpha1_MachineList(a.(*machine.MachineList), b.(*MachineList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSet)(nil), (*machine.MachineSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSet_To_machine_MachineSet(a.(*MachineSet), b.(*machine.MachineSet), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSet)(nil), (*MachineSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSet_To_v1alpha1_MachineSet(a.(*machine.MachineSet), b.(*MachineSet), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSetCondition)(nil), (*machine.MachineSetCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(a.(*MachineSetCondition), b.(*machine.MachineSetCondition), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSetCondition)(nil), (*MachineSetCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(a.(*machine.MachineSetCondition), b.(*MachineSetCondition), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSetList)(nil), (*machine.MachineSetList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSetList_To_machine_MachineSetList(a.(*MachineSetList), b.(*machine.MachineSetList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSetList)(nil), (*MachineSetList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSetList_To_v1alpha1_MachineSetList(a.(*machine.MachineSetList), b.(*MachineSetList), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSetSpec)(nil), (*machine.MachineSetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(a.(*MachineSetSpec), b.(*machine.MachineSetSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSetSpec)(nil), (*MachineSetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(a.(*machine.MachineSetSpec), b.(*MachineSetSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSetStatus)(nil), (*machine.MachineSetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(a.(*MachineSetStatus), b.(*machine.MachineSetStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSetStatus)(nil), (*MachineSetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(a.(*machine.MachineSetStatus), b.(*MachineSetStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSpec)(nil), (*machine.MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(a.(*MachineSpec), b.(*machine.MachineSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSpec)(nil), (*MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(a.(*machine.MachineSpec), b.(*MachineSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineStatus)(nil), (*machine.MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(a.(*MachineStatus), b.(*machine.MachineStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineStatus)(nil), (*MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(a.(*machine.MachineStatus), b.(*MachineStatus), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineSummary)(nil), (*machine.MachineSummary)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSummary_To_machine_MachineSummary(a.(*MachineSummary), b.(*machine.MachineSummary), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineSummary)(nil), (*MachineSummary)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineSummary_To_v1alpha1_MachineSummary(a.(*machine.MachineSummary), b.(*MachineSummary), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*MachineTemplateSpec)(nil), (*machine.MachineTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(a.(*MachineTemplateSpec), b.(*machine.MachineTemplateSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.MachineTemplateSpec)(nil), (*MachineTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(a.(*machine.MachineTemplateSpec), b.(*MachineTemplateSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*NodeTemplate)(nil), (*machine.NodeTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(a.(*NodeTemplate), b.(*machine.NodeTemplate), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.NodeTemplate)(nil), (*NodeTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(a.(*machine.NodeTemplate), b.(*NodeTemplate), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*NodeTemplateSpec)(nil), (*machine.NodeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(a.(*NodeTemplateSpec), b.(*machine.NodeTemplateSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.NodeTemplateSpec)(nil), (*NodeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(a.(*machine.NodeTemplateSpec), b.(*NodeTemplateSpec), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*RollbackConfig)(nil), (*machine.RollbackConfig)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(a.(*RollbackConfig), b.(*machine.RollbackConfig), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.RollbackConfig)(nil), (*RollbackConfig)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(a.(*machine.RollbackConfig), b.(*RollbackConfig), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*RollingUpdateMachineDeployment)(nil), (*machine.RollingUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(a.(*RollingUpdateMachineDeployment), b.(*machine.RollingUpdateMachineDeployment), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.RollingUpdateMachineDeployment)(nil), (*RollingUpdateMachineDeployment)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(a.(*machine.RollingUpdateMachineDeployment), b.(*RollingUpdateMachineDeployment), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*UpdateConfiguration)(nil), (*machine.UpdateConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(a.(*UpdateConfiguration), b.(*machine.UpdateConfiguration), scope)
+ }); err != nil {
+ return err
+ }
+ if err := s.AddGeneratedConversionFunc((*machine.UpdateConfiguration)(nil), (*UpdateConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(a.(*machine.UpdateConfiguration), b.(*UpdateConfiguration), scope)
+ }); err != nil {
+ return err
+ }
+ return nil
+}
+
+func autoConvert_v1alpha1_ClassSpec_To_machine_ClassSpec(in *ClassSpec, out *machine.ClassSpec, s conversion.Scope) error {
+ out.APIGroup = in.APIGroup
+ out.Kind = in.Kind
+ out.Name = in.Name
+ return nil
+}
+
+// Convert_v1alpha1_ClassSpec_To_machine_ClassSpec is an autogenerated conversion function.
+func Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(in *ClassSpec, out *machine.ClassSpec, s conversion.Scope) error {
+ return autoConvert_v1alpha1_ClassSpec_To_machine_ClassSpec(in, out, s)
+}
+
+func autoConvert_machine_ClassSpec_To_v1alpha1_ClassSpec(in *machine.ClassSpec, out *ClassSpec, s conversion.Scope) error {
+ out.APIGroup = in.APIGroup
+ out.Kind = in.Kind
+ out.Name = in.Name
+ return nil
+}
+
+// Convert_machine_ClassSpec_To_v1alpha1_ClassSpec is an autogenerated conversion function.
+func Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(in *machine.ClassSpec, out *ClassSpec, s conversion.Scope) error {
+ return autoConvert_machine_ClassSpec_To_v1alpha1_ClassSpec(in, out, s)
+}
+
+func autoConvert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in *CurrentStatus, out *machine.CurrentStatus, s conversion.Scope) error {
+ out.Phase = machine.MachinePhase(in.Phase)
+ out.TimeoutActive = in.TimeoutActive
+ out.LastUpdateTime = in.LastUpdateTime
+ out.PreserveExpiryTime = (*v1.Time)(unsafe.Pointer(in.PreserveExpiryTime))
+ return nil
+}
+
+// Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus is an autogenerated conversion function.
+func Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in *CurrentStatus, out *machine.CurrentStatus, s conversion.Scope) error {
+ return autoConvert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(in, out, s)
+}
+
+func autoConvert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in *machine.CurrentStatus, out *CurrentStatus, s conversion.Scope) error {
+ out.Phase = MachinePhase(in.Phase)
+ out.TimeoutActive = in.TimeoutActive
+ out.LastUpdateTime = in.LastUpdateTime
+ out.PreserveExpiryTime = (*v1.Time)(unsafe.Pointer(in.PreserveExpiryTime))
+ return nil
+}
+
+// Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus is an autogenerated conversion function.
+func Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in *machine.CurrentStatus, out *CurrentStatus, s conversion.Scope) error {
+ return autoConvert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(in, out, s)
+}
+
+func autoConvert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in *InPlaceUpdateMachineDeployment, out *machine.InPlaceUpdateMachineDeployment, s conversion.Scope) error {
+ if err := Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
+ return err
+ }
+ out.OrchestrationType = machine.OrchestrationType(in.OrchestrationType)
+ return nil
+}
+
+// Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment is an autogenerated conversion function.
+func Convert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in *InPlaceUpdateMachineDeployment, out *machine.InPlaceUpdateMachineDeployment, s conversion.Scope) error {
+ return autoConvert_v1alpha1_InPlaceUpdateMachineDeployment_To_machine_InPlaceUpdateMachineDeployment(in, out, s)
+}
+
+func autoConvert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in *machine.InPlaceUpdateMachineDeployment, out *InPlaceUpdateMachineDeployment, s conversion.Scope) error {
+ if err := Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
+ return err
+ }
+ out.OrchestrationType = OrchestrationType(in.OrchestrationType)
+ return nil
+}
+
+// Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment is an autogenerated conversion function.
+func Convert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in *machine.InPlaceUpdateMachineDeployment, out *InPlaceUpdateMachineDeployment, s conversion.Scope) error {
+ return autoConvert_machine_InPlaceUpdateMachineDeployment_To_v1alpha1_InPlaceUpdateMachineDeployment(in, out, s)
+}
+
+func autoConvert_v1alpha1_LastOperation_To_machine_LastOperation(in *LastOperation, out *machine.LastOperation, s conversion.Scope) error {
+ out.Description = in.Description
+ out.ErrorCode = in.ErrorCode
+ out.LastUpdateTime = in.LastUpdateTime
+ out.State = machine.MachineState(in.State)
+ out.Type = machine.MachineOperationType(in.Type)
+ return nil
+}
+
+// Convert_v1alpha1_LastOperation_To_machine_LastOperation is an autogenerated conversion function.
+func Convert_v1alpha1_LastOperation_To_machine_LastOperation(in *LastOperation, out *machine.LastOperation, s conversion.Scope) error {
+ return autoConvert_v1alpha1_LastOperation_To_machine_LastOperation(in, out, s)
+}
+
+func autoConvert_machine_LastOperation_To_v1alpha1_LastOperation(in *machine.LastOperation, out *LastOperation, s conversion.Scope) error {
+ out.Description = in.Description
+ out.ErrorCode = in.ErrorCode
+ out.LastUpdateTime = in.LastUpdateTime
+ out.State = MachineState(in.State)
+ out.Type = MachineOperationType(in.Type)
+ return nil
+}
+
+// Convert_machine_LastOperation_To_v1alpha1_LastOperation is an autogenerated conversion function.
+func Convert_machine_LastOperation_To_v1alpha1_LastOperation(in *machine.LastOperation, out *LastOperation, s conversion.Scope) error {
+ return autoConvert_machine_LastOperation_To_v1alpha1_LastOperation(in, out, s)
+}
+
+func autoConvert_v1alpha1_Machine_To_machine_Machine(in *Machine, out *machine.Machine, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ if err := Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(&in.Status, &out.Status, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_v1alpha1_Machine_To_machine_Machine is an autogenerated conversion function.
+func Convert_v1alpha1_Machine_To_machine_Machine(in *Machine, out *machine.Machine, s conversion.Scope) error {
+ return autoConvert_v1alpha1_Machine_To_machine_Machine(in, out, s)
+}
+
+func autoConvert_machine_Machine_To_v1alpha1_Machine(in *machine.Machine, out *Machine, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ if err := Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(&in.Status, &out.Status, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_machine_Machine_To_v1alpha1_Machine is an autogenerated conversion function.
+func Convert_machine_Machine_To_v1alpha1_Machine(in *machine.Machine, out *Machine, s conversion.Scope) error {
+ return autoConvert_machine_Machine_To_v1alpha1_Machine(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineClass_To_machine_MachineClass(in *MachineClass, out *machine.MachineClass, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ out.NodeTemplate = (*machine.NodeTemplate)(unsafe.Pointer(in.NodeTemplate))
+ out.CredentialsSecretRef = (*corev1.SecretReference)(unsafe.Pointer(in.CredentialsSecretRef))
+ out.ProviderSpec = in.ProviderSpec
+ out.Provider = in.Provider
+ out.SecretRef = (*corev1.SecretReference)(unsafe.Pointer(in.SecretRef))
+ return nil
+}
+
+// Convert_v1alpha1_MachineClass_To_machine_MachineClass is an autogenerated conversion function.
+func Convert_v1alpha1_MachineClass_To_machine_MachineClass(in *MachineClass, out *machine.MachineClass, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineClass_To_machine_MachineClass(in, out, s)
+}
+
+func autoConvert_machine_MachineClass_To_v1alpha1_MachineClass(in *machine.MachineClass, out *MachineClass, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ out.NodeTemplate = (*NodeTemplate)(unsafe.Pointer(in.NodeTemplate))
+ out.CredentialsSecretRef = (*corev1.SecretReference)(unsafe.Pointer(in.CredentialsSecretRef))
+ out.Provider = in.Provider
+ out.ProviderSpec = in.ProviderSpec
+ out.SecretRef = (*corev1.SecretReference)(unsafe.Pointer(in.SecretRef))
+ return nil
+}
+
+// Convert_machine_MachineClass_To_v1alpha1_MachineClass is an autogenerated conversion function.
+func Convert_machine_MachineClass_To_v1alpha1_MachineClass(in *machine.MachineClass, out *MachineClass, s conversion.Scope) error {
+ return autoConvert_machine_MachineClass_To_v1alpha1_MachineClass(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineClassList_To_machine_MachineClassList(in *MachineClassList, out *machine.MachineClassList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]machine.MachineClass, len(*in))
+ for i := range *in {
+ if err := Convert_v1alpha1_MachineClass_To_machine_MachineClass(&(*in)[i], &(*out)[i], s); err != nil {
+ return err
+ }
+ }
+ } else {
+ out.Items = nil
+ }
+ return nil
+}
+
+// Convert_v1alpha1_MachineClassList_To_machine_MachineClassList is an autogenerated conversion function.
+func Convert_v1alpha1_MachineClassList_To_machine_MachineClassList(in *MachineClassList, out *machine.MachineClassList, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineClassList_To_machine_MachineClassList(in, out, s)
+}
+
+func autoConvert_machine_MachineClassList_To_v1alpha1_MachineClassList(in *machine.MachineClassList, out *MachineClassList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineClass, len(*in))
+ for i := range *in {
+ if err := Convert_machine_MachineClass_To_v1alpha1_MachineClass(&(*in)[i], &(*out)[i], s); err != nil {
+ return err
+ }
+ }
+ } else {
+ out.Items = nil
+ }
+ return nil
+}
+
+// Convert_machine_MachineClassList_To_v1alpha1_MachineClassList is an autogenerated conversion function.
+func Convert_machine_MachineClassList_To_v1alpha1_MachineClassList(in *machine.MachineClassList, out *MachineClassList, s conversion.Scope) error {
+ return autoConvert_machine_MachineClassList_To_v1alpha1_MachineClassList(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in *MachineConfiguration, out *machine.MachineConfiguration, s conversion.Scope) error {
+ out.MachineDrainTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineDrainTimeout))
+ out.MachineHealthTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineHealthTimeout))
+ out.MachineCreationTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineCreationTimeout))
+ out.MachineInPlaceUpdateTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineInPlaceUpdateTimeout))
+ out.MachinePreserveTimeout = (*v1.Duration)(unsafe.Pointer(in.MachinePreserveTimeout))
+ out.DisableHealthTimeout = (*bool)(unsafe.Pointer(in.DisableHealthTimeout))
+ out.MaxEvictRetries = (*int32)(unsafe.Pointer(in.MaxEvictRetries))
+ out.NodeConditions = (*string)(unsafe.Pointer(in.NodeConditions))
+ return nil
+}
+
+// Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration is an autogenerated conversion function.
+func Convert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in *MachineConfiguration, out *machine.MachineConfiguration, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineConfiguration_To_machine_MachineConfiguration(in, out, s)
+}
+
+func autoConvert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in *machine.MachineConfiguration, out *MachineConfiguration, s conversion.Scope) error {
+ out.MachineDrainTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineDrainTimeout))
+ out.MachineHealthTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineHealthTimeout))
+ out.MachineCreationTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineCreationTimeout))
+ out.MachineInPlaceUpdateTimeout = (*v1.Duration)(unsafe.Pointer(in.MachineInPlaceUpdateTimeout))
+ out.MachinePreserveTimeout = (*v1.Duration)(unsafe.Pointer(in.MachinePreserveTimeout))
+ out.DisableHealthTimeout = (*bool)(unsafe.Pointer(in.DisableHealthTimeout))
+ out.MaxEvictRetries = (*int32)(unsafe.Pointer(in.MaxEvictRetries))
+ out.NodeConditions = (*string)(unsafe.Pointer(in.NodeConditions))
+ return nil
+}
+
+// Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration is an autogenerated conversion function.
+func Convert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in *machine.MachineConfiguration, out *MachineConfiguration, s conversion.Scope) error {
+ return autoConvert_machine_MachineConfiguration_To_v1alpha1_MachineConfiguration(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in *MachineDeployment, out *machine.MachineDeployment, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ if err := Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(&in.Status, &out.Status, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment is an autogenerated conversion function.
+func Convert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in *MachineDeployment, out *machine.MachineDeployment, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineDeployment_To_machine_MachineDeployment(in, out, s)
+}
+
+func autoConvert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in *machine.MachineDeployment, out *MachineDeployment, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ if err := Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(&in.Status, &out.Status, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment is an autogenerated conversion function.
+func Convert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in *machine.MachineDeployment, out *MachineDeployment, s conversion.Scope) error {
+ return autoConvert_machine_MachineDeployment_To_v1alpha1_MachineDeployment(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in *MachineDeploymentCondition, out *machine.MachineDeploymentCondition, s conversion.Scope) error {
+ out.Type = machine.MachineDeploymentConditionType(in.Type)
+ out.Status = machine.ConditionStatus(in.Status)
+ out.LastUpdateTime = in.LastUpdateTime
+ out.LastTransitionTime = in.LastTransitionTime
+ out.Reason = in.Reason
+ out.Message = in.Message
+ return nil
+}
+
+// Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition is an autogenerated conversion function.
+func Convert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in *MachineDeploymentCondition, out *machine.MachineDeploymentCondition, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineDeploymentCondition_To_machine_MachineDeploymentCondition(in, out, s)
+}
+
+func autoConvert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in *machine.MachineDeploymentCondition, out *MachineDeploymentCondition, s conversion.Scope) error {
+ out.Type = MachineDeploymentConditionType(in.Type)
+ out.Status = ConditionStatus(in.Status)
+ out.LastUpdateTime = in.LastUpdateTime
+ out.LastTransitionTime = in.LastTransitionTime
+ out.Reason = in.Reason
+ out.Message = in.Message
+ return nil
+}
+
+// Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition is an autogenerated conversion function.
+func Convert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in *machine.MachineDeploymentCondition, out *MachineDeploymentCondition, s conversion.Scope) error {
+ return autoConvert_machine_MachineDeploymentCondition_To_v1alpha1_MachineDeploymentCondition(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in *MachineDeploymentList, out *machine.MachineDeploymentList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ out.Items = *(*[]machine.MachineDeployment)(unsafe.Pointer(&in.Items))
+ return nil
+}
+
+// Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList is an autogenerated conversion function.
+func Convert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in *MachineDeploymentList, out *machine.MachineDeploymentList, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineDeploymentList_To_machine_MachineDeploymentList(in, out, s)
+}
+
+func autoConvert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in *machine.MachineDeploymentList, out *MachineDeploymentList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ out.Items = *(*[]MachineDeployment)(unsafe.Pointer(&in.Items))
+ return nil
+}
+
+// Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList is an autogenerated conversion function.
+func Convert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in *machine.MachineDeploymentList, out *MachineDeploymentList, s conversion.Scope) error {
+ return autoConvert_machine_MachineDeploymentList_To_v1alpha1_MachineDeploymentList(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in *MachineDeploymentSpec, out *machine.MachineDeploymentSpec, s conversion.Scope) error {
+ out.Replicas = in.Replicas
+ out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
+ if err := Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
+ return err
+ }
+ if err := Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(&in.Strategy, &out.Strategy, s); err != nil {
+ return err
+ }
+ out.MinReadySeconds = in.MinReadySeconds
+ out.RevisionHistoryLimit = (*int32)(unsafe.Pointer(in.RevisionHistoryLimit))
+ out.Paused = in.Paused
+ out.RollbackTo = (*machine.RollbackConfig)(unsafe.Pointer(in.RollbackTo))
+ out.ProgressDeadlineSeconds = (*int32)(unsafe.Pointer(in.ProgressDeadlineSeconds))
+ out.AutoPreserveFailedMachineMax = (*int32)(unsafe.Pointer(in.AutoPreserveFailedMachineMax))
+ return nil
+}
+
+// Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec is an autogenerated conversion function.
+func Convert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in *MachineDeploymentSpec, out *machine.MachineDeploymentSpec, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineDeploymentSpec_To_machine_MachineDeploymentSpec(in, out, s)
+}
+
+func autoConvert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in *machine.MachineDeploymentSpec, out *MachineDeploymentSpec, s conversion.Scope) error {
+ out.Replicas = in.Replicas
+ out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
+ if err := Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
+ return err
+ }
+ if err := Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(&in.Strategy, &out.Strategy, s); err != nil {
+ return err
+ }
+ out.MinReadySeconds = in.MinReadySeconds
+ out.RevisionHistoryLimit = (*int32)(unsafe.Pointer(in.RevisionHistoryLimit))
+ out.Paused = in.Paused
+ out.RollbackTo = (*RollbackConfig)(unsafe.Pointer(in.RollbackTo))
+ out.ProgressDeadlineSeconds = (*int32)(unsafe.Pointer(in.ProgressDeadlineSeconds))
+ out.AutoPreserveFailedMachineMax = (*int32)(unsafe.Pointer(in.AutoPreserveFailedMachineMax))
+ return nil
+}
+
+// Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec is an autogenerated conversion function.
+func Convert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in *machine.MachineDeploymentSpec, out *MachineDeploymentSpec, s conversion.Scope) error {
+ return autoConvert_machine_MachineDeploymentSpec_To_v1alpha1_MachineDeploymentSpec(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in *MachineDeploymentStatus, out *machine.MachineDeploymentStatus, s conversion.Scope) error {
+ out.ObservedGeneration = in.ObservedGeneration
+ out.Replicas = in.Replicas
+ out.UpdatedReplicas = in.UpdatedReplicas
+ out.ReadyReplicas = in.ReadyReplicas
+ out.AvailableReplicas = in.AvailableReplicas
+ out.UnavailableReplicas = in.UnavailableReplicas
+ out.Conditions = *(*[]machine.MachineDeploymentCondition)(unsafe.Pointer(&in.Conditions))
+ out.CollisionCount = (*int32)(unsafe.Pointer(in.CollisionCount))
+ out.FailedMachines = *(*[]*machine.MachineSummary)(unsafe.Pointer(&in.FailedMachines))
+ return nil
+}
+
+// Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus is an autogenerated conversion function.
+func Convert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in *MachineDeploymentStatus, out *machine.MachineDeploymentStatus, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineDeploymentStatus_To_machine_MachineDeploymentStatus(in, out, s)
+}
+
+func autoConvert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in *machine.MachineDeploymentStatus, out *MachineDeploymentStatus, s conversion.Scope) error {
+ out.ObservedGeneration = in.ObservedGeneration
+ out.Replicas = in.Replicas
+ out.UpdatedReplicas = in.UpdatedReplicas
+ out.ReadyReplicas = in.ReadyReplicas
+ out.AvailableReplicas = in.AvailableReplicas
+ out.UnavailableReplicas = in.UnavailableReplicas
+ out.Conditions = *(*[]MachineDeploymentCondition)(unsafe.Pointer(&in.Conditions))
+ out.CollisionCount = (*int32)(unsafe.Pointer(in.CollisionCount))
+ out.FailedMachines = *(*[]*MachineSummary)(unsafe.Pointer(&in.FailedMachines))
+ return nil
+}
+
+// Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus is an autogenerated conversion function.
+func Convert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in *machine.MachineDeploymentStatus, out *MachineDeploymentStatus, s conversion.Scope) error {
+ return autoConvert_machine_MachineDeploymentStatus_To_v1alpha1_MachineDeploymentStatus(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in *MachineDeploymentStrategy, out *machine.MachineDeploymentStrategy, s conversion.Scope) error {
+ out.Type = machine.MachineDeploymentStrategyType(in.Type)
+ out.RollingUpdate = (*machine.RollingUpdateMachineDeployment)(unsafe.Pointer(in.RollingUpdate))
+ out.InPlaceUpdate = (*machine.InPlaceUpdateMachineDeployment)(unsafe.Pointer(in.InPlaceUpdate))
+ return nil
+}
+
+// Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy is an autogenerated conversion function.
+func Convert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in *MachineDeploymentStrategy, out *machine.MachineDeploymentStrategy, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineDeploymentStrategy_To_machine_MachineDeploymentStrategy(in, out, s)
+}
+
+func autoConvert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in *machine.MachineDeploymentStrategy, out *MachineDeploymentStrategy, s conversion.Scope) error {
+ out.Type = MachineDeploymentStrategyType(in.Type)
+ out.RollingUpdate = (*RollingUpdateMachineDeployment)(unsafe.Pointer(in.RollingUpdate))
+ out.InPlaceUpdate = (*InPlaceUpdateMachineDeployment)(unsafe.Pointer(in.InPlaceUpdate))
+ return nil
+}
+
+// Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy is an autogenerated conversion function.
+func Convert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in *machine.MachineDeploymentStrategy, out *MachineDeploymentStrategy, s conversion.Scope) error {
+ return autoConvert_machine_MachineDeploymentStrategy_To_v1alpha1_MachineDeploymentStrategy(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineList_To_machine_MachineList(in *MachineList, out *machine.MachineList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ out.Items = *(*[]machine.Machine)(unsafe.Pointer(&in.Items))
+ return nil
+}
+
+// Convert_v1alpha1_MachineList_To_machine_MachineList is an autogenerated conversion function.
+func Convert_v1alpha1_MachineList_To_machine_MachineList(in *MachineList, out *machine.MachineList, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineList_To_machine_MachineList(in, out, s)
+}
+
+func autoConvert_machine_MachineList_To_v1alpha1_MachineList(in *machine.MachineList, out *MachineList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ out.Items = *(*[]Machine)(unsafe.Pointer(&in.Items))
+ return nil
+}
+
+// Convert_machine_MachineList_To_v1alpha1_MachineList is an autogenerated conversion function.
+func Convert_machine_MachineList_To_v1alpha1_MachineList(in *machine.MachineList, out *MachineList, s conversion.Scope) error {
+ return autoConvert_machine_MachineList_To_v1alpha1_MachineList(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSet_To_machine_MachineSet(in *MachineSet, out *machine.MachineSet, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ if err := Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(&in.Status, &out.Status, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_v1alpha1_MachineSet_To_machine_MachineSet is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSet_To_machine_MachineSet(in *MachineSet, out *machine.MachineSet, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSet_To_machine_MachineSet(in, out, s)
+}
+
+func autoConvert_machine_MachineSet_To_v1alpha1_MachineSet(in *machine.MachineSet, out *MachineSet, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ if err := Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(&in.Status, &out.Status, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_machine_MachineSet_To_v1alpha1_MachineSet is an autogenerated conversion function.
+func Convert_machine_MachineSet_To_v1alpha1_MachineSet(in *machine.MachineSet, out *MachineSet, s conversion.Scope) error {
+ return autoConvert_machine_MachineSet_To_v1alpha1_MachineSet(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in *MachineSetCondition, out *machine.MachineSetCondition, s conversion.Scope) error {
+ out.Type = machine.MachineSetConditionType(in.Type)
+ out.Status = machine.ConditionStatus(in.Status)
+ out.LastTransitionTime = in.LastTransitionTime
+ out.Reason = in.Reason
+ out.Message = in.Message
+ return nil
+}
+
+// Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in *MachineSetCondition, out *machine.MachineSetCondition, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSetCondition_To_machine_MachineSetCondition(in, out, s)
+}
+
+func autoConvert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in *machine.MachineSetCondition, out *MachineSetCondition, s conversion.Scope) error {
+ out.Type = MachineSetConditionType(in.Type)
+ out.Status = ConditionStatus(in.Status)
+ out.LastTransitionTime = in.LastTransitionTime
+ out.Reason = in.Reason
+ out.Message = in.Message
+ return nil
+}
+
+// Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition is an autogenerated conversion function.
+func Convert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in *machine.MachineSetCondition, out *MachineSetCondition, s conversion.Scope) error {
+ return autoConvert_machine_MachineSetCondition_To_v1alpha1_MachineSetCondition(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSetList_To_machine_MachineSetList(in *MachineSetList, out *machine.MachineSetList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ out.Items = *(*[]machine.MachineSet)(unsafe.Pointer(&in.Items))
+ return nil
+}
+
+// Convert_v1alpha1_MachineSetList_To_machine_MachineSetList is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSetList_To_machine_MachineSetList(in *MachineSetList, out *machine.MachineSetList, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSetList_To_machine_MachineSetList(in, out, s)
+}
+
+func autoConvert_machine_MachineSetList_To_v1alpha1_MachineSetList(in *machine.MachineSetList, out *MachineSetList, s conversion.Scope) error {
+ out.ListMeta = in.ListMeta
+ out.Items = *(*[]MachineSet)(unsafe.Pointer(&in.Items))
+ return nil
+}
+
+// Convert_machine_MachineSetList_To_v1alpha1_MachineSetList is an autogenerated conversion function.
+func Convert_machine_MachineSetList_To_v1alpha1_MachineSetList(in *machine.MachineSetList, out *MachineSetList, s conversion.Scope) error {
+ return autoConvert_machine_MachineSetList_To_v1alpha1_MachineSetList(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in *MachineSetSpec, out *machine.MachineSetSpec, s conversion.Scope) error {
+ out.Replicas = in.Replicas
+ out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
+ if err := Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(&in.MachineClass, &out.MachineClass, s); err != nil {
+ return err
+ }
+ if err := Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
+ return err
+ }
+ out.MinReadySeconds = in.MinReadySeconds
+ out.AutoPreserveFailedMachineMax = (*int32)(unsafe.Pointer(in.AutoPreserveFailedMachineMax))
+ return nil
+}
+
+// Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in *MachineSetSpec, out *machine.MachineSetSpec, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSetSpec_To_machine_MachineSetSpec(in, out, s)
+}
+
+func autoConvert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in *machine.MachineSetSpec, out *MachineSetSpec, s conversion.Scope) error {
+ out.Replicas = in.Replicas
+ out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
+ if err := Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(&in.MachineClass, &out.MachineClass, s); err != nil {
+ return err
+ }
+ if err := Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(&in.Template, &out.Template, s); err != nil {
+ return err
+ }
+ out.MinReadySeconds = in.MinReadySeconds
+ out.AutoPreserveFailedMachineMax = (*int32)(unsafe.Pointer(in.AutoPreserveFailedMachineMax))
+ return nil
+}
+
+// Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec is an autogenerated conversion function.
+func Convert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in *machine.MachineSetSpec, out *MachineSetSpec, s conversion.Scope) error {
+ return autoConvert_machine_MachineSetSpec_To_v1alpha1_MachineSetSpec(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in *MachineSetStatus, out *machine.MachineSetStatus, s conversion.Scope) error {
+ out.Replicas = in.Replicas
+ out.FullyLabeledReplicas = in.FullyLabeledReplicas
+ out.ReadyReplicas = in.ReadyReplicas
+ out.AvailableReplicas = in.AvailableReplicas
+ out.ObservedGeneration = in.ObservedGeneration
+ out.Conditions = *(*[]machine.MachineSetCondition)(unsafe.Pointer(&in.Conditions))
+ if err := Convert_v1alpha1_LastOperation_To_machine_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
+ return err
+ }
+ out.FailedMachines = (*[]machine.MachineSummary)(unsafe.Pointer(in.FailedMachines))
+ out.AutoPreserveFailedMachineCount = (*int32)(unsafe.Pointer(in.AutoPreserveFailedMachineCount))
+ return nil
+}
+
+// Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in *MachineSetStatus, out *machine.MachineSetStatus, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSetStatus_To_machine_MachineSetStatus(in, out, s)
+}
+
+func autoConvert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in *machine.MachineSetStatus, out *MachineSetStatus, s conversion.Scope) error {
+ out.Replicas = in.Replicas
+ out.FullyLabeledReplicas = in.FullyLabeledReplicas
+ out.ReadyReplicas = in.ReadyReplicas
+ out.AvailableReplicas = in.AvailableReplicas
+ out.ObservedGeneration = in.ObservedGeneration
+ out.Conditions = *(*[]MachineSetCondition)(unsafe.Pointer(&in.Conditions))
+ if err := Convert_machine_LastOperation_To_v1alpha1_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
+ return err
+ }
+ out.FailedMachines = (*[]MachineSummary)(unsafe.Pointer(in.FailedMachines))
+ out.AutoPreserveFailedMachineCount = (*int32)(unsafe.Pointer(in.AutoPreserveFailedMachineCount))
+ return nil
+}
+
+// Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus is an autogenerated conversion function.
+func Convert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in *machine.MachineSetStatus, out *MachineSetStatus, s conversion.Scope) error {
+ return autoConvert_machine_MachineSetStatus_To_v1alpha1_MachineSetStatus(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSpec_To_machine_MachineSpec(in *MachineSpec, out *machine.MachineSpec, s conversion.Scope) error {
+ if err := Convert_v1alpha1_ClassSpec_To_machine_ClassSpec(&in.Class, &out.Class, s); err != nil {
+ return err
+ }
+ out.ProviderID = in.ProviderID
+ if err := Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(&in.NodeTemplateSpec, &out.NodeTemplateSpec, s); err != nil {
+ return err
+ }
+ out.MachineConfiguration = (*machine.MachineConfiguration)(unsafe.Pointer(in.MachineConfiguration))
+ return nil
+}
+
+// Convert_v1alpha1_MachineSpec_To_machine_MachineSpec is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(in *MachineSpec, out *machine.MachineSpec, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSpec_To_machine_MachineSpec(in, out, s)
+}
+
+func autoConvert_machine_MachineSpec_To_v1alpha1_MachineSpec(in *machine.MachineSpec, out *MachineSpec, s conversion.Scope) error {
+ if err := Convert_machine_ClassSpec_To_v1alpha1_ClassSpec(&in.Class, &out.Class, s); err != nil {
+ return err
+ }
+ out.ProviderID = in.ProviderID
+ if err := Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(&in.NodeTemplateSpec, &out.NodeTemplateSpec, s); err != nil {
+ return err
+ }
+ out.MachineConfiguration = (*MachineConfiguration)(unsafe.Pointer(in.MachineConfiguration))
+ return nil
+}
+
+// Convert_machine_MachineSpec_To_v1alpha1_MachineSpec is an autogenerated conversion function.
+func Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(in *machine.MachineSpec, out *MachineSpec, s conversion.Scope) error {
+ return autoConvert_machine_MachineSpec_To_v1alpha1_MachineSpec(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineStatus_To_machine_MachineStatus(in *MachineStatus, out *machine.MachineStatus, s conversion.Scope) error {
+ out.Addresses = *(*[]corev1.NodeAddress)(unsafe.Pointer(&in.Addresses))
+ out.Conditions = *(*[]corev1.NodeCondition)(unsafe.Pointer(&in.Conditions))
+ if err := Convert_v1alpha1_LastOperation_To_machine_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
+ return err
+ }
+ if err := Convert_v1alpha1_CurrentStatus_To_machine_CurrentStatus(&in.CurrentStatus, &out.CurrentStatus, s); err != nil {
+ return err
+ }
+ out.LastKnownState = in.LastKnownState
+ return nil
+}
+
+// Convert_v1alpha1_MachineStatus_To_machine_MachineStatus is an autogenerated conversion function.
+func Convert_v1alpha1_MachineStatus_To_machine_MachineStatus(in *MachineStatus, out *machine.MachineStatus, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineStatus_To_machine_MachineStatus(in, out, s)
+}
+
+func autoConvert_machine_MachineStatus_To_v1alpha1_MachineStatus(in *machine.MachineStatus, out *MachineStatus, s conversion.Scope) error {
+ out.Addresses = *(*[]corev1.NodeAddress)(unsafe.Pointer(&in.Addresses))
+ out.Conditions = *(*[]corev1.NodeCondition)(unsafe.Pointer(&in.Conditions))
+ if err := Convert_machine_LastOperation_To_v1alpha1_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
+ return err
+ }
+ if err := Convert_machine_CurrentStatus_To_v1alpha1_CurrentStatus(&in.CurrentStatus, &out.CurrentStatus, s); err != nil {
+ return err
+ }
+ out.LastKnownState = in.LastKnownState
+ return nil
+}
+
+// Convert_machine_MachineStatus_To_v1alpha1_MachineStatus is an autogenerated conversion function.
+func Convert_machine_MachineStatus_To_v1alpha1_MachineStatus(in *machine.MachineStatus, out *MachineStatus, s conversion.Scope) error {
+ return autoConvert_machine_MachineStatus_To_v1alpha1_MachineStatus(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineSummary_To_machine_MachineSummary(in *MachineSummary, out *machine.MachineSummary, s conversion.Scope) error {
+ out.Name = in.Name
+ out.ProviderID = in.ProviderID
+ if err := Convert_v1alpha1_LastOperation_To_machine_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
+ return err
+ }
+ out.OwnerRef = in.OwnerRef
+ return nil
+}
+
+// Convert_v1alpha1_MachineSummary_To_machine_MachineSummary is an autogenerated conversion function.
+func Convert_v1alpha1_MachineSummary_To_machine_MachineSummary(in *MachineSummary, out *machine.MachineSummary, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineSummary_To_machine_MachineSummary(in, out, s)
+}
+
+func autoConvert_machine_MachineSummary_To_v1alpha1_MachineSummary(in *machine.MachineSummary, out *MachineSummary, s conversion.Scope) error {
+ out.Name = in.Name
+ out.ProviderID = in.ProviderID
+ if err := Convert_machine_LastOperation_To_v1alpha1_LastOperation(&in.LastOperation, &out.LastOperation, s); err != nil {
+ return err
+ }
+ out.OwnerRef = in.OwnerRef
+ return nil
+}
+
+// Convert_machine_MachineSummary_To_v1alpha1_MachineSummary is an autogenerated conversion function.
+func Convert_machine_MachineSummary_To_v1alpha1_MachineSummary(in *machine.MachineSummary, out *MachineSummary, s conversion.Scope) error {
+ return autoConvert_machine_MachineSummary_To_v1alpha1_MachineSummary(in, out, s)
+}
+
+func autoConvert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in *MachineTemplateSpec, out *machine.MachineTemplateSpec, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_v1alpha1_MachineSpec_To_machine_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec is an autogenerated conversion function.
+func Convert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in *MachineTemplateSpec, out *machine.MachineTemplateSpec, s conversion.Scope) error {
+ return autoConvert_v1alpha1_MachineTemplateSpec_To_machine_MachineTemplateSpec(in, out, s)
+}
+
+func autoConvert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in *machine.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ if err := Convert_machine_MachineSpec_To_v1alpha1_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec is an autogenerated conversion function.
+func Convert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in *machine.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error {
+ return autoConvert_machine_MachineTemplateSpec_To_v1alpha1_MachineTemplateSpec(in, out, s)
+}
+
+func autoConvert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in *NodeTemplate, out *machine.NodeTemplate, s conversion.Scope) error {
+ out.Capacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.Capacity))
+ out.VirtualCapacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.VirtualCapacity))
+ out.InstanceType = in.InstanceType
+ out.Region = in.Region
+ out.Zone = in.Zone
+ out.Architecture = (*string)(unsafe.Pointer(in.Architecture))
+ return nil
+}
+
+// Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate is an autogenerated conversion function.
+func Convert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in *NodeTemplate, out *machine.NodeTemplate, s conversion.Scope) error {
+ return autoConvert_v1alpha1_NodeTemplate_To_machine_NodeTemplate(in, out, s)
+}
+
+func autoConvert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in *machine.NodeTemplate, out *NodeTemplate, s conversion.Scope) error {
+ out.Capacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.Capacity))
+ out.VirtualCapacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.VirtualCapacity))
+ out.InstanceType = in.InstanceType
+ out.Region = in.Region
+ out.Zone = in.Zone
+ out.Architecture = (*string)(unsafe.Pointer(in.Architecture))
+ return nil
+}
+
+// Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate is an autogenerated conversion function.
+func Convert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in *machine.NodeTemplate, out *NodeTemplate, s conversion.Scope) error {
+ return autoConvert_machine_NodeTemplate_To_v1alpha1_NodeTemplate(in, out, s)
+}
+
+func autoConvert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in *NodeTemplateSpec, out *machine.NodeTemplateSpec, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ out.Spec = in.Spec
+ return nil
+}
+
+// Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec is an autogenerated conversion function.
+func Convert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in *NodeTemplateSpec, out *machine.NodeTemplateSpec, s conversion.Scope) error {
+ return autoConvert_v1alpha1_NodeTemplateSpec_To_machine_NodeTemplateSpec(in, out, s)
+}
+
+func autoConvert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in *machine.NodeTemplateSpec, out *NodeTemplateSpec, s conversion.Scope) error {
+ out.ObjectMeta = in.ObjectMeta
+ out.Spec = in.Spec
+ return nil
+}
+
+// Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec is an autogenerated conversion function.
+func Convert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in *machine.NodeTemplateSpec, out *NodeTemplateSpec, s conversion.Scope) error {
+ return autoConvert_machine_NodeTemplateSpec_To_v1alpha1_NodeTemplateSpec(in, out, s)
+}
+
+func autoConvert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in *RollbackConfig, out *machine.RollbackConfig, s conversion.Scope) error {
+ out.Revision = in.Revision
+ return nil
+}
+
+// Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig is an autogenerated conversion function.
+func Convert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in *RollbackConfig, out *machine.RollbackConfig, s conversion.Scope) error {
+ return autoConvert_v1alpha1_RollbackConfig_To_machine_RollbackConfig(in, out, s)
+}
+
+func autoConvert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in *machine.RollbackConfig, out *RollbackConfig, s conversion.Scope) error {
+ out.Revision = in.Revision
+ return nil
+}
+
+// Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig is an autogenerated conversion function.
+func Convert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in *machine.RollbackConfig, out *RollbackConfig, s conversion.Scope) error {
+ return autoConvert_machine_RollbackConfig_To_v1alpha1_RollbackConfig(in, out, s)
+}
+
+func autoConvert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in *RollingUpdateMachineDeployment, out *machine.RollingUpdateMachineDeployment, s conversion.Scope) error {
+ if err := Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment is an autogenerated conversion function.
+func Convert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in *RollingUpdateMachineDeployment, out *machine.RollingUpdateMachineDeployment, s conversion.Scope) error {
+ return autoConvert_v1alpha1_RollingUpdateMachineDeployment_To_machine_RollingUpdateMachineDeployment(in, out, s)
+}
+
+func autoConvert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in *machine.RollingUpdateMachineDeployment, out *RollingUpdateMachineDeployment, s conversion.Scope) error {
+ if err := Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(&in.UpdateConfiguration, &out.UpdateConfiguration, s); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment is an autogenerated conversion function.
+func Convert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in *machine.RollingUpdateMachineDeployment, out *RollingUpdateMachineDeployment, s conversion.Scope) error {
+ return autoConvert_machine_RollingUpdateMachineDeployment_To_v1alpha1_RollingUpdateMachineDeployment(in, out, s)
+}
+
+func autoConvert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in *UpdateConfiguration, out *machine.UpdateConfiguration, s conversion.Scope) error {
+ out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
+ out.MaxSurge = (*intstr.IntOrString)(unsafe.Pointer(in.MaxSurge))
+ return nil
+}
+
+// Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration is an autogenerated conversion function.
+func Convert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in *UpdateConfiguration, out *machine.UpdateConfiguration, s conversion.Scope) error {
+ return autoConvert_v1alpha1_UpdateConfiguration_To_machine_UpdateConfiguration(in, out, s)
+}
+
+func autoConvert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in *machine.UpdateConfiguration, out *UpdateConfiguration, s conversion.Scope) error {
+ out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
+ out.MaxSurge = (*intstr.IntOrString)(unsafe.Pointer(in.MaxSurge))
+ return nil
+}
+
+// Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration is an autogenerated conversion function.
+func Convert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in *machine.UpdateConfiguration, out *UpdateConfiguration, s conversion.Scope) error {
+ return autoConvert_machine_UpdateConfiguration_To_v1alpha1_UpdateConfiguration(in, out, s)
+}
diff --git a/pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go
new file mode 100644
index 000000000..f169b3811
--- /dev/null
+++ b/pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go
@@ -0,0 +1,813 @@
+//go:build !ignore_autogenerated
+// +build !ignore_autogenerated
+
+// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
+//
+// SPDX-License-Identifier: Apache-2.0
+
+// Code generated by deepcopy-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ v1 "k8s.io/api/core/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ intstr "k8s.io/apimachinery/pkg/util/intstr"
+)
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ClassSpec) DeepCopyInto(out *ClassSpec) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClassSpec.
+func (in *ClassSpec) DeepCopy() *ClassSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(ClassSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CurrentStatus) DeepCopyInto(out *CurrentStatus) {
+ *out = *in
+ in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
+ if in.PreserveExpiryTime != nil {
+ in, out := &in.PreserveExpiryTime, &out.PreserveExpiryTime
+ *out = (*in).DeepCopy()
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CurrentStatus.
+func (in *CurrentStatus) DeepCopy() *CurrentStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(CurrentStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *InPlaceUpdateMachineDeployment) DeepCopyInto(out *InPlaceUpdateMachineDeployment) {
+ *out = *in
+ in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InPlaceUpdateMachineDeployment.
+func (in *InPlaceUpdateMachineDeployment) DeepCopy() *InPlaceUpdateMachineDeployment {
+ if in == nil {
+ return nil
+ }
+ out := new(InPlaceUpdateMachineDeployment)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *LastOperation) DeepCopyInto(out *LastOperation) {
+ *out = *in
+ in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastOperation.
+func (in *LastOperation) DeepCopy() *LastOperation {
+ if in == nil {
+ return nil
+ }
+ out := new(LastOperation)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *Machine) DeepCopyInto(out *Machine) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.TypeMeta = in.TypeMeta
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
+func (in *Machine) DeepCopy() *Machine {
+ if in == nil {
+ return nil
+ }
+ out := new(Machine)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *Machine) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineClass) DeepCopyInto(out *MachineClass) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ if in.NodeTemplate != nil {
+ in, out := &in.NodeTemplate, &out.NodeTemplate
+ *out = new(NodeTemplate)
+ (*in).DeepCopyInto(*out)
+ }
+ if in.CredentialsSecretRef != nil {
+ in, out := &in.CredentialsSecretRef, &out.CredentialsSecretRef
+ *out = new(v1.SecretReference)
+ **out = **in
+ }
+ in.ProviderSpec.DeepCopyInto(&out.ProviderSpec)
+ if in.SecretRef != nil {
+ in, out := &in.SecretRef, &out.SecretRef
+ *out = new(v1.SecretReference)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClass.
+func (in *MachineClass) DeepCopy() *MachineClass {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineClass)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineClass) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineClassList) DeepCopyInto(out *MachineClassList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineClass, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassList.
+func (in *MachineClassList) DeepCopy() *MachineClassList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineClassList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineClassList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineConfiguration) DeepCopyInto(out *MachineConfiguration) {
+ *out = *in
+ if in.MachineDrainTimeout != nil {
+ in, out := &in.MachineDrainTimeout, &out.MachineDrainTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachineHealthTimeout != nil {
+ in, out := &in.MachineHealthTimeout, &out.MachineHealthTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachineCreationTimeout != nil {
+ in, out := &in.MachineCreationTimeout, &out.MachineCreationTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachineInPlaceUpdateTimeout != nil {
+ in, out := &in.MachineInPlaceUpdateTimeout, &out.MachineInPlaceUpdateTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachinePreserveTimeout != nil {
+ in, out := &in.MachinePreserveTimeout, &out.MachinePreserveTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.DisableHealthTimeout != nil {
+ in, out := &in.DisableHealthTimeout, &out.DisableHealthTimeout
+ *out = new(bool)
+ **out = **in
+ }
+ if in.MaxEvictRetries != nil {
+ in, out := &in.MaxEvictRetries, &out.MaxEvictRetries
+ *out = new(int32)
+ **out = **in
+ }
+ if in.NodeConditions != nil {
+ in, out := &in.NodeConditions, &out.NodeConditions
+ *out = new(string)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfiguration.
+func (in *MachineConfiguration) DeepCopy() *MachineConfiguration {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineConfiguration)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeployment.
+func (in *MachineDeployment) DeepCopy() *MachineDeployment {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeployment)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineDeployment) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentCondition) DeepCopyInto(out *MachineDeploymentCondition) {
+ *out = *in
+ in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
+ in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentCondition.
+func (in *MachineDeploymentCondition) DeepCopy() *MachineDeploymentCondition {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentCondition)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineDeployment, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentList.
+func (in *MachineDeploymentList) DeepCopy() *MachineDeploymentList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineDeploymentList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec) {
+ *out = *in
+ if in.Selector != nil {
+ in, out := &in.Selector, &out.Selector
+ *out = new(metav1.LabelSelector)
+ (*in).DeepCopyInto(*out)
+ }
+ in.Template.DeepCopyInto(&out.Template)
+ in.Strategy.DeepCopyInto(&out.Strategy)
+ if in.RevisionHistoryLimit != nil {
+ in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
+ *out = new(int32)
+ **out = **in
+ }
+ if in.RollbackTo != nil {
+ in, out := &in.RollbackTo, &out.RollbackTo
+ *out = new(RollbackConfig)
+ **out = **in
+ }
+ if in.ProgressDeadlineSeconds != nil {
+ in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds
+ *out = new(int32)
+ **out = **in
+ }
+ if in.AutoPreserveFailedMachineMax != nil {
+ in, out := &in.AutoPreserveFailedMachineMax, &out.AutoPreserveFailedMachineMax
+ *out = new(int32)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentSpec.
+func (in *MachineDeploymentSpec) DeepCopy() *MachineDeploymentSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]MachineDeploymentCondition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ if in.CollisionCount != nil {
+ in, out := &in.CollisionCount, &out.CollisionCount
+ *out = new(int32)
+ **out = **in
+ }
+ if in.FailedMachines != nil {
+ in, out := &in.FailedMachines, &out.FailedMachines
+ *out = make([]*MachineSummary, len(*in))
+ for i := range *in {
+ if (*in)[i] != nil {
+ in, out := &(*in)[i], &(*out)[i]
+ *out = new(MachineSummary)
+ (*in).DeepCopyInto(*out)
+ }
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStatus.
+func (in *MachineDeploymentStatus) DeepCopy() *MachineDeploymentStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentStrategy) DeepCopyInto(out *MachineDeploymentStrategy) {
+ *out = *in
+ if in.RollingUpdate != nil {
+ in, out := &in.RollingUpdate, &out.RollingUpdate
+ *out = new(RollingUpdateMachineDeployment)
+ (*in).DeepCopyInto(*out)
+ }
+ if in.InPlaceUpdate != nil {
+ in, out := &in.InPlaceUpdate, &out.InPlaceUpdate
+ *out = new(InPlaceUpdateMachineDeployment)
+ (*in).DeepCopyInto(*out)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStrategy.
+func (in *MachineDeploymentStrategy) DeepCopy() *MachineDeploymentStrategy {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentStrategy)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineList) DeepCopyInto(out *MachineList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]Machine, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
+func (in *MachineList) DeepCopy() *MachineList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSet) DeepCopyInto(out *MachineSet) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.TypeMeta = in.TypeMeta
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSet.
+func (in *MachineSet) DeepCopy() *MachineSet {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSet)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineSet) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetCondition) DeepCopyInto(out *MachineSetCondition) {
+ *out = *in
+ in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetCondition.
+func (in *MachineSetCondition) DeepCopy() *MachineSetCondition {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetCondition)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetList) DeepCopyInto(out *MachineSetList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineSet, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetList.
+func (in *MachineSetList) DeepCopy() *MachineSetList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineSetList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec) {
+ *out = *in
+ if in.Selector != nil {
+ in, out := &in.Selector, &out.Selector
+ *out = new(metav1.LabelSelector)
+ (*in).DeepCopyInto(*out)
+ }
+ out.MachineClass = in.MachineClass
+ in.Template.DeepCopyInto(&out.Template)
+ if in.AutoPreserveFailedMachineMax != nil {
+ in, out := &in.AutoPreserveFailedMachineMax, &out.AutoPreserveFailedMachineMax
+ *out = new(int32)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetSpec.
+func (in *MachineSetSpec) DeepCopy() *MachineSetSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]MachineSetCondition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ in.LastOperation.DeepCopyInto(&out.LastOperation)
+ if in.FailedMachines != nil {
+ in, out := &in.FailedMachines, &out.FailedMachines
+ *out = new([]MachineSummary)
+ if **in != nil {
+ in, out := *in, *out
+ *out = make([]MachineSummary, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ }
+ if in.AutoPreserveFailedMachineCount != nil {
+ in, out := &in.AutoPreserveFailedMachineCount, &out.AutoPreserveFailedMachineCount
+ *out = new(int32)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetStatus.
+func (in *MachineSetStatus) DeepCopy() *MachineSetStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSpec) DeepCopyInto(out *MachineSpec) {
+ *out = *in
+ out.Class = in.Class
+ in.NodeTemplateSpec.DeepCopyInto(&out.NodeTemplateSpec)
+ if in.MachineConfiguration != nil {
+ in, out := &in.MachineConfiguration, &out.MachineConfiguration
+ *out = new(MachineConfiguration)
+ (*in).DeepCopyInto(*out)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
+func (in *MachineSpec) DeepCopy() *MachineSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
+ *out = *in
+ if in.Addresses != nil {
+ in, out := &in.Addresses, &out.Addresses
+ *out = make([]v1.NodeAddress, len(*in))
+ copy(*out, *in)
+ }
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]v1.NodeCondition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ in.LastOperation.DeepCopyInto(&out.LastOperation)
+ in.CurrentStatus.DeepCopyInto(&out.CurrentStatus)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
+func (in *MachineStatus) DeepCopy() *MachineStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSummary) DeepCopyInto(out *MachineSummary) {
+ *out = *in
+ in.LastOperation.DeepCopyInto(&out.LastOperation)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSummary.
+func (in *MachineSummary) DeepCopy() *MachineSummary {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSummary)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.
+func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineTemplateSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate) {
+ *out = *in
+ if in.Capacity != nil {
+ in, out := &in.Capacity, &out.Capacity
+ *out = make(v1.ResourceList, len(*in))
+ for key, val := range *in {
+ (*out)[key] = val.DeepCopy()
+ }
+ }
+ if in.VirtualCapacity != nil {
+ in, out := &in.VirtualCapacity, &out.VirtualCapacity
+ *out = make(v1.ResourceList, len(*in))
+ for key, val := range *in {
+ (*out)[key] = val.DeepCopy()
+ }
+ }
+ if in.Architecture != nil {
+ in, out := &in.Architecture, &out.Architecture
+ *out = new(string)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplate.
+func (in *NodeTemplate) DeepCopy() *NodeTemplate {
+ if in == nil {
+ return nil
+ }
+ out := new(NodeTemplate)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateSpec.
+func (in *NodeTemplateSpec) DeepCopy() *NodeTemplateSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(NodeTemplateSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig.
+func (in *RollbackConfig) DeepCopy() *RollbackConfig {
+ if in == nil {
+ return nil
+ }
+ out := new(RollbackConfig)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *RollingUpdateMachineDeployment) DeepCopyInto(out *RollingUpdateMachineDeployment) {
+ *out = *in
+ in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateMachineDeployment.
+func (in *RollingUpdateMachineDeployment) DeepCopy() *RollingUpdateMachineDeployment {
+ if in == nil {
+ return nil
+ }
+ out := new(RollingUpdateMachineDeployment)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *UpdateConfiguration) DeepCopyInto(out *UpdateConfiguration) {
+ *out = *in
+ if in.MaxUnavailable != nil {
+ in, out := &in.MaxUnavailable, &out.MaxUnavailable
+ *out = new(intstr.IntOrString)
+ **out = **in
+ }
+ if in.MaxSurge != nil {
+ in, out := &in.MaxSurge, &out.MaxSurge
+ *out = new(intstr.IntOrString)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfiguration.
+func (in *UpdateConfiguration) DeepCopy() *UpdateConfiguration {
+ if in == nil {
+ return nil
+ }
+ out := new(UpdateConfiguration)
+ in.DeepCopyInto(out)
+ return out
+}
diff --git a/pkg/apis/machine/v1alpha1/zz_generated.defaults.go b/pkg/apis/machine/v1alpha1/zz_generated.defaults.go
new file mode 100644
index 000000000..dce68e638
--- /dev/null
+++ b/pkg/apis/machine/v1alpha1/zz_generated.defaults.go
@@ -0,0 +1,21 @@
+//go:build !ignore_autogenerated
+// +build !ignore_autogenerated
+
+// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
+//
+// SPDX-License-Identifier: Apache-2.0
+
+// Code generated by defaulter-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ runtime "k8s.io/apimachinery/pkg/runtime"
+)
+
+// 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 RegisterDefaults(scheme *runtime.Scheme) error {
+ return nil
+}
diff --git a/pkg/apis/machine/zz_generated.deepcopy.go b/pkg/apis/machine/zz_generated.deepcopy.go
new file mode 100644
index 000000000..2f1d11e2f
--- /dev/null
+++ b/pkg/apis/machine/zz_generated.deepcopy.go
@@ -0,0 +1,906 @@
+//go:build !ignore_autogenerated
+// +build !ignore_autogenerated
+
+// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
+//
+// SPDX-License-Identifier: Apache-2.0
+
+// Code generated by deepcopy-gen. DO NOT EDIT.
+
+package machine
+
+import (
+ v1 "k8s.io/api/core/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ intstr "k8s.io/apimachinery/pkg/util/intstr"
+)
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ClassSpec) DeepCopyInto(out *ClassSpec) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClassSpec.
+func (in *ClassSpec) DeepCopy() *ClassSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(ClassSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CurrentStatus) DeepCopyInto(out *CurrentStatus) {
+ *out = *in
+ in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
+ if in.PreserveExpiryTime != nil {
+ in, out := &in.PreserveExpiryTime, &out.PreserveExpiryTime
+ *out = (*in).DeepCopy()
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CurrentStatus.
+func (in *CurrentStatus) DeepCopy() *CurrentStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(CurrentStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *InPlaceUpdateMachineDeployment) DeepCopyInto(out *InPlaceUpdateMachineDeployment) {
+ *out = *in
+ in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InPlaceUpdateMachineDeployment.
+func (in *InPlaceUpdateMachineDeployment) DeepCopy() *InPlaceUpdateMachineDeployment {
+ if in == nil {
+ return nil
+ }
+ out := new(InPlaceUpdateMachineDeployment)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *LastOperation) DeepCopyInto(out *LastOperation) {
+ *out = *in
+ in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastOperation.
+func (in *LastOperation) DeepCopy() *LastOperation {
+ if in == nil {
+ return nil
+ }
+ out := new(LastOperation)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *Machine) DeepCopyInto(out *Machine) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.TypeMeta = in.TypeMeta
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
+func (in *Machine) DeepCopy() *Machine {
+ if in == nil {
+ return nil
+ }
+ out := new(Machine)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *Machine) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineClass) DeepCopyInto(out *MachineClass) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ if in.NodeTemplate != nil {
+ in, out := &in.NodeTemplate, &out.NodeTemplate
+ *out = new(NodeTemplate)
+ (*in).DeepCopyInto(*out)
+ }
+ if in.CredentialsSecretRef != nil {
+ in, out := &in.CredentialsSecretRef, &out.CredentialsSecretRef
+ *out = new(v1.SecretReference)
+ **out = **in
+ }
+ in.ProviderSpec.DeepCopyInto(&out.ProviderSpec)
+ if in.SecretRef != nil {
+ in, out := &in.SecretRef, &out.SecretRef
+ *out = new(v1.SecretReference)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClass.
+func (in *MachineClass) DeepCopy() *MachineClass {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineClass)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineClass) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineClassList) DeepCopyInto(out *MachineClassList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineClass, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassList.
+func (in *MachineClassList) DeepCopy() *MachineClassList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineClassList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineClassList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineConfiguration) DeepCopyInto(out *MachineConfiguration) {
+ *out = *in
+ if in.MachineDrainTimeout != nil {
+ in, out := &in.MachineDrainTimeout, &out.MachineDrainTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachineHealthTimeout != nil {
+ in, out := &in.MachineHealthTimeout, &out.MachineHealthTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachineCreationTimeout != nil {
+ in, out := &in.MachineCreationTimeout, &out.MachineCreationTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachineInPlaceUpdateTimeout != nil {
+ in, out := &in.MachineInPlaceUpdateTimeout, &out.MachineInPlaceUpdateTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.MachinePreserveTimeout != nil {
+ in, out := &in.MachinePreserveTimeout, &out.MachinePreserveTimeout
+ *out = new(metav1.Duration)
+ **out = **in
+ }
+ if in.DisableHealthTimeout != nil {
+ in, out := &in.DisableHealthTimeout, &out.DisableHealthTimeout
+ *out = new(bool)
+ **out = **in
+ }
+ if in.MaxEvictRetries != nil {
+ in, out := &in.MaxEvictRetries, &out.MaxEvictRetries
+ *out = new(int32)
+ **out = **in
+ }
+ if in.NodeConditions != nil {
+ in, out := &in.NodeConditions, &out.NodeConditions
+ *out = new(string)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfiguration.
+func (in *MachineConfiguration) DeepCopy() *MachineConfiguration {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineConfiguration)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeployment.
+func (in *MachineDeployment) DeepCopy() *MachineDeployment {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeployment)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineDeployment) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentCondition) DeepCopyInto(out *MachineDeploymentCondition) {
+ *out = *in
+ in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
+ in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentCondition.
+func (in *MachineDeploymentCondition) DeepCopy() *MachineDeploymentCondition {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentCondition)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineDeployment, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentList.
+func (in *MachineDeploymentList) DeepCopy() *MachineDeploymentList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineDeploymentList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentRollback) DeepCopyInto(out *MachineDeploymentRollback) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ if in.UpdatedAnnotations != nil {
+ in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations
+ *out = make(map[string]string, len(*in))
+ for key, val := range *in {
+ (*out)[key] = val
+ }
+ }
+ out.RollbackTo = in.RollbackTo
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentRollback.
+func (in *MachineDeploymentRollback) DeepCopy() *MachineDeploymentRollback {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentRollback)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineDeploymentRollback) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec) {
+ *out = *in
+ if in.Selector != nil {
+ in, out := &in.Selector, &out.Selector
+ *out = new(metav1.LabelSelector)
+ (*in).DeepCopyInto(*out)
+ }
+ in.Template.DeepCopyInto(&out.Template)
+ in.Strategy.DeepCopyInto(&out.Strategy)
+ if in.RevisionHistoryLimit != nil {
+ in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
+ *out = new(int32)
+ **out = **in
+ }
+ if in.RollbackTo != nil {
+ in, out := &in.RollbackTo, &out.RollbackTo
+ *out = new(RollbackConfig)
+ **out = **in
+ }
+ if in.ProgressDeadlineSeconds != nil {
+ in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds
+ *out = new(int32)
+ **out = **in
+ }
+ if in.AutoPreserveFailedMachineMax != nil {
+ in, out := &in.AutoPreserveFailedMachineMax, &out.AutoPreserveFailedMachineMax
+ *out = new(int32)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentSpec.
+func (in *MachineDeploymentSpec) DeepCopy() *MachineDeploymentSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]MachineDeploymentCondition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ if in.CollisionCount != nil {
+ in, out := &in.CollisionCount, &out.CollisionCount
+ *out = new(int32)
+ **out = **in
+ }
+ if in.FailedMachines != nil {
+ in, out := &in.FailedMachines, &out.FailedMachines
+ *out = make([]*MachineSummary, len(*in))
+ for i := range *in {
+ if (*in)[i] != nil {
+ in, out := &(*in)[i], &(*out)[i]
+ *out = new(MachineSummary)
+ (*in).DeepCopyInto(*out)
+ }
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStatus.
+func (in *MachineDeploymentStatus) DeepCopy() *MachineDeploymentStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineDeploymentStrategy) DeepCopyInto(out *MachineDeploymentStrategy) {
+ *out = *in
+ if in.RollingUpdate != nil {
+ in, out := &in.RollingUpdate, &out.RollingUpdate
+ *out = new(RollingUpdateMachineDeployment)
+ (*in).DeepCopyInto(*out)
+ }
+ if in.InPlaceUpdate != nil {
+ in, out := &in.InPlaceUpdate, &out.InPlaceUpdate
+ *out = new(InPlaceUpdateMachineDeployment)
+ (*in).DeepCopyInto(*out)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStrategy.
+func (in *MachineDeploymentStrategy) DeepCopy() *MachineDeploymentStrategy {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineDeploymentStrategy)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineList) DeepCopyInto(out *MachineList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]Machine, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
+func (in *MachineList) DeepCopy() *MachineList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSet) DeepCopyInto(out *MachineSet) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.TypeMeta = in.TypeMeta
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSet.
+func (in *MachineSet) DeepCopy() *MachineSet {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSet)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineSet) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetCondition) DeepCopyInto(out *MachineSetCondition) {
+ *out = *in
+ in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetCondition.
+func (in *MachineSetCondition) DeepCopy() *MachineSetCondition {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetCondition)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetList) DeepCopyInto(out *MachineSetList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineSet, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetList.
+func (in *MachineSetList) DeepCopy() *MachineSetList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineSetList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec) {
+ *out = *in
+ if in.Selector != nil {
+ in, out := &in.Selector, &out.Selector
+ *out = new(metav1.LabelSelector)
+ (*in).DeepCopyInto(*out)
+ }
+ out.MachineClass = in.MachineClass
+ in.Template.DeepCopyInto(&out.Template)
+ if in.AutoPreserveFailedMachineMax != nil {
+ in, out := &in.AutoPreserveFailedMachineMax, &out.AutoPreserveFailedMachineMax
+ *out = new(int32)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetSpec.
+func (in *MachineSetSpec) DeepCopy() *MachineSetSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]MachineSetCondition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ in.LastOperation.DeepCopyInto(&out.LastOperation)
+ if in.FailedMachines != nil {
+ in, out := &in.FailedMachines, &out.FailedMachines
+ *out = new([]MachineSummary)
+ if **in != nil {
+ in, out := *in, *out
+ *out = make([]MachineSummary, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ }
+ if in.AutoPreserveFailedMachineCount != nil {
+ in, out := &in.AutoPreserveFailedMachineCount, &out.AutoPreserveFailedMachineCount
+ *out = new(int32)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetStatus.
+func (in *MachineSetStatus) DeepCopy() *MachineSetStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSetStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSpec) DeepCopyInto(out *MachineSpec) {
+ *out = *in
+ out.Class = in.Class
+ in.NodeTemplateSpec.DeepCopyInto(&out.NodeTemplateSpec)
+ if in.MachineConfiguration != nil {
+ in, out := &in.MachineConfiguration, &out.MachineConfiguration
+ *out = new(MachineConfiguration)
+ (*in).DeepCopyInto(*out)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
+func (in *MachineSpec) DeepCopy() *MachineSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
+ *out = *in
+ if in.Addresses != nil {
+ in, out := &in.Addresses, &out.Addresses
+ *out = make([]v1.NodeAddress, len(*in))
+ copy(*out, *in)
+ }
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]v1.NodeCondition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ in.LastOperation.DeepCopyInto(&out.LastOperation)
+ in.CurrentStatus.DeepCopyInto(&out.CurrentStatus)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
+func (in *MachineStatus) DeepCopy() *MachineStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineSummary) DeepCopyInto(out *MachineSummary) {
+ *out = *in
+ in.LastOperation.DeepCopyInto(&out.LastOperation)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSummary.
+func (in *MachineSummary) DeepCopy() *MachineSummary {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineSummary)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineTemplate) DeepCopyInto(out *MachineTemplate) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Template.DeepCopyInto(&out.Template)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplate.
+func (in *MachineTemplate) DeepCopy() *MachineTemplate {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineTemplate)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineTemplate) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineTemplateList) DeepCopyInto(out *MachineTemplateList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]MachineTemplate, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateList.
+func (in *MachineTemplateList) DeepCopy() *MachineTemplateList {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineTemplateList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *MachineTemplateList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.
+func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(MachineTemplateSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate) {
+ *out = *in
+ if in.Capacity != nil {
+ in, out := &in.Capacity, &out.Capacity
+ *out = make(v1.ResourceList, len(*in))
+ for key, val := range *in {
+ (*out)[key] = val.DeepCopy()
+ }
+ }
+ if in.VirtualCapacity != nil {
+ in, out := &in.VirtualCapacity, &out.VirtualCapacity
+ *out = make(v1.ResourceList, len(*in))
+ for key, val := range *in {
+ (*out)[key] = val.DeepCopy()
+ }
+ }
+ if in.Architecture != nil {
+ in, out := &in.Architecture, &out.Architecture
+ *out = new(string)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplate.
+func (in *NodeTemplate) DeepCopy() *NodeTemplate {
+ if in == nil {
+ return nil
+ }
+ out := new(NodeTemplate)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec) {
+ *out = *in
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateSpec.
+func (in *NodeTemplateSpec) DeepCopy() *NodeTemplateSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(NodeTemplateSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig.
+func (in *RollbackConfig) DeepCopy() *RollbackConfig {
+ if in == nil {
+ return nil
+ }
+ out := new(RollbackConfig)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *RollingUpdateMachineDeployment) DeepCopyInto(out *RollingUpdateMachineDeployment) {
+ *out = *in
+ in.UpdateConfiguration.DeepCopyInto(&out.UpdateConfiguration)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateMachineDeployment.
+func (in *RollingUpdateMachineDeployment) DeepCopy() *RollingUpdateMachineDeployment {
+ if in == nil {
+ return nil
+ }
+ out := new(RollingUpdateMachineDeployment)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *UpdateConfiguration) DeepCopyInto(out *UpdateConfiguration) {
+ *out = *in
+ if in.MaxUnavailable != nil {
+ in, out := &in.MaxUnavailable, &out.MaxUnavailable
+ *out = new(intstr.IntOrString)
+ **out = **in
+ }
+ if in.MaxSurge != nil {
+ in, out := &in.MaxSurge, &out.MaxSurge
+ *out = new(intstr.IntOrString)
+ **out = **in
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfiguration.
+func (in *UpdateConfiguration) DeepCopy() *UpdateConfiguration {
+ if in == nil {
+ return nil
+ }
+ out := new(UpdateConfiguration)
+ in.DeepCopyInto(out)
+ return out
+}
From 0761fba9e3693fa0a520ff652db0cfb6965a2ae1 Mon Sep 17 00:00:00 2001
From: thiyyakat
Date: Thu, 8 Jan 2026 14:19:11 +0530
Subject: [PATCH 43/43] Fix nil pointer dereferencing bug.
---
pkg/controller/machineset.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/controller/machineset.go b/pkg/controller/machineset.go
index 120d39b06..dca3ab1f1 100644
--- a/pkg/controller/machineset.go
+++ b/pkg/controller/machineset.go
@@ -508,7 +508,7 @@ func (c *controller) isMachineCandidateForPreservation(ctx context.Context, mach
return false, nil
}
}
- if *machineSet.Status.AutoPreserveFailedMachineCount < *machineSet.Spec.AutoPreserveFailedMachineMax {
+ if machineSet.Status.AutoPreserveFailedMachineCount != nil && machineSet.Spec.AutoPreserveFailedMachineMax != nil && *machineSet.Status.AutoPreserveFailedMachineCount < *machineSet.Spec.AutoPreserveFailedMachineMax {
err := c.annotateMachineForAutoPreservation(ctx, machine)
if err != nil {
return true, err
|