-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️ Move Machine deletion timeout fields into deletion group, move KCP machineTemplate spec fields to machineTemplate.spec #12499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1997112
10a765d
03e02f3
1cf8729
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,12 +130,31 @@ type KubeadmControlPlaneTemplateResourceSpec struct { | |
| // omits ObjectMeta and InfrastructureRef fields. These fields do not make sense on the KubeadmControlPlaneTemplate, | ||
| // because they are calculated by the Cluster topology reconciler during reconciliation and thus cannot | ||
| // be configured on the KubeadmControlPlaneTemplate. | ||
| // +kubebuilder:validation:MinProperties=1 | ||
| type KubeadmControlPlaneTemplateMachineTemplate struct { | ||
| // metadata is the standard object's metadata. | ||
| // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | ||
| // +optional | ||
| ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty,omitzero"` | ||
|
|
||
| // spec defines the spec for Machines | ||
| // in a KubeadmControlPlane object. | ||
| // +optional | ||
| Spec KubeadmControlPlaneTemplateMachineTemplateSpec `json:"spec,omitempty,omitzero"` | ||
| } | ||
|
|
||
| // KubeadmControlPlaneTemplateMachineTemplateSpec defines the spec for Machines | ||
| // in a KubeadmControlPlane object. | ||
| // +kubebuilder:validation:MinProperties=1 | ||
| type KubeadmControlPlaneTemplateMachineTemplateSpec struct { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. q: should we add minProperties? |
||
| // deletion contains configuration options for Machine deletion. | ||
| // +optional | ||
| Deletion KubeadmControlPlaneTemplateMachineTemplateDeletionSpec `json:"deletion,omitempty,omitzero"` | ||
| } | ||
|
|
||
| // KubeadmControlPlaneTemplateMachineTemplateDeletionSpec contains configuration options for Machine deletion. | ||
| // +kubebuilder:validation:MinProperties=1 | ||
| type KubeadmControlPlaneTemplateMachineTemplateDeletionSpec struct { | ||
| // nodeDrainTimeoutSeconds is the total amount of time that the controller will spend on draining a controlplane node | ||
| // The default value is 0, meaning that the node can be drained without any time limitations. | ||
| // NOTE: nodeDrainTimeoutSeconds is different from `kubectl drain --timeout` | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.