@@ -244,7 +244,7 @@ type MachineDeploymentSpec struct {
244
244
// +kubebuilder:validation:MinLength=1
245
245
ClusterName string `json:"clusterName"`
246
246
247
- // Number of desired machines.
247
+ // replicas is the number of desired machines.
248
248
// This is a pointer to distinguish between explicit zero and not specified.
249
249
//
250
250
// Defaults to:
@@ -273,15 +273,15 @@ type MachineDeploymentSpec struct {
273
273
// +optional
274
274
RolloutAfter * metav1.Time `json:"rolloutAfter,omitempty"`
275
275
276
- // Label selector for machines. Existing MachineSets whose machines are
276
+ // selector is the label selector for machines. Existing MachineSets whose machines are
277
277
// selected by this will be the ones affected by this deployment.
278
278
// It must match the machine template's labels.
279
279
Selector metav1.LabelSelector `json:"selector"`
280
280
281
281
// template describes the machines that will be created.
282
282
Template MachineTemplateSpec `json:"template"`
283
283
284
- // The deployment strategy to use to replace existing machines with
284
+ // strategy is the deployment strategy to use to replace existing machines with
285
285
// new ones.
286
286
// +optional
287
287
Strategy * MachineDeploymentStrategy `json:"strategy,omitempty"`
@@ -296,7 +296,7 @@ type MachineDeploymentSpec struct {
296
296
// +optional
297
297
MinReadySeconds * int32 `json:"minReadySeconds,omitempty"`
298
298
299
- // The number of old MachineSets to retain to allow rollback.
299
+ // revisionHistoryLimit is the number of old MachineSets to retain to allow rollback.
300
300
// This is a pointer to distinguish between explicit zero and not specified.
301
301
// Defaults to 1.
302
302
//
@@ -305,11 +305,11 @@ type MachineDeploymentSpec struct {
305
305
// +optional
306
306
RevisionHistoryLimit * int32 `json:"revisionHistoryLimit,omitempty"`
307
307
308
- // Indicates that the deployment is paused.
308
+ // paused indicates that the deployment is paused.
309
309
// +optional
310
310
Paused bool `json:"paused,omitempty"`
311
311
312
- // The maximum time in seconds for a deployment to make progress before it
312
+ // progressDeadlineSeconds is the maximum time in seconds for a deployment to make progress before it
313
313
// is considered to be failed. The deployment controller will continue to
314
314
// process failed deployments and a condition with a ProgressDeadlineExceeded
315
315
// reason will be surfaced in the deployment status. Note that progress will
@@ -334,7 +334,7 @@ type MachineDeploymentStrategy struct {
334
334
// +optional
335
335
Type MachineDeploymentStrategyType `json:"type,omitempty"`
336
336
337
- // Rolling update config params. Present only if
337
+ // rollingUpdate is the rolling update config params. Present only if
338
338
// MachineDeploymentStrategyType = RollingUpdate.
339
339
// +optional
340
340
RollingUpdate * MachineRollingUpdateDeployment `json:"rollingUpdate,omitempty"`
@@ -351,7 +351,7 @@ type MachineDeploymentStrategy struct {
351
351
352
352
// MachineRollingUpdateDeployment is used to control the desired behavior of rolling update.
353
353
type MachineRollingUpdateDeployment struct {
354
- // The maximum number of machines that can be unavailable during the update.
354
+ // maxUnavailable is the maximum number of machines that can be unavailable during the update.
355
355
// Value can be an absolute number (ex: 5) or a percentage of desired
356
356
// machines (ex: 10%).
357
357
// Absolute number is calculated from percentage by rounding down.
@@ -366,7 +366,7 @@ type MachineRollingUpdateDeployment struct {
366
366
// +optional
367
367
MaxUnavailable * intstr.IntOrString `json:"maxUnavailable,omitempty"`
368
368
369
- // The maximum number of machines that can be scheduled above the
369
+ // maxSurge is the maximum number of machines that can be scheduled above the
370
370
// desired number of machines.
371
371
// Value can be an absolute number (ex: 5) or a percentage of
372
372
// desired machines (ex: 10%).
@@ -446,7 +446,7 @@ type MachineNamingStrategy struct {
446
446
447
447
// MachineDeploymentStatus defines the observed state of MachineDeployment.
448
448
type MachineDeploymentStatus struct {
449
- // The generation observed by the deployment controller.
449
+ // observedGeneration is the generation observed by the deployment controller.
450
450
// +optional
451
451
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
452
452
@@ -456,26 +456,26 @@ type MachineDeploymentStatus struct {
456
456
// +optional
457
457
Selector string `json:"selector,omitempty"`
458
458
459
- // Total number of non-terminated machines targeted by this deployment
459
+ // replicas is the total number of non-terminated machines targeted by this deployment
460
460
// (their labels match the selector).
461
461
// +optional
462
462
Replicas int32 `json:"replicas"`
463
463
464
- // Total number of non-terminated machines targeted by this deployment
464
+ // updatedReplicas is the total number of non-terminated machines targeted by this deployment
465
465
// that have the desired template spec.
466
466
// +optional
467
467
UpdatedReplicas int32 `json:"updatedReplicas"`
468
468
469
- // Total number of ready machines targeted by this deployment.
469
+ // readyReplicas is the total number of ready machines targeted by this deployment.
470
470
// +optional
471
471
ReadyReplicas int32 `json:"readyReplicas"`
472
472
473
- // Total number of available machines (ready for at least minReadySeconds)
473
+ // availableReplicas is the total number of available machines (ready for at least minReadySeconds)
474
474
// targeted by this deployment.
475
475
// +optional
476
476
AvailableReplicas int32 `json:"availableReplicas"`
477
477
478
- // Total number of unavailable machines targeted by this deployment.
478
+ // unavailableReplicas is the total number of unavailable machines targeted by this deployment.
479
479
// This is the total number of machines that are still required for
480
480
// the deployment to have 100% available capacity. They may either
481
481
// be machines that are running but not yet available or machines
0 commit comments