@@ -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"`
@@ -291,7 +291,7 @@ type MachineDeploymentSpec struct {
291
291
// +optional
292
292
MinReadySeconds * int32 `json:"minReadySeconds,omitempty"`
293
293
294
- // The number of old MachineSets to retain to allow rollback.
294
+ // revisionHistoryLimit is the number of old MachineSets to retain to allow rollback.
295
295
// This is a pointer to distinguish between explicit zero and not specified.
296
296
// Defaults to 1.
297
297
//
@@ -300,11 +300,11 @@ type MachineDeploymentSpec struct {
300
300
// +optional
301
301
RevisionHistoryLimit * int32 `json:"revisionHistoryLimit,omitempty"`
302
302
303
- // Indicates that the deployment is paused.
303
+ // paused indicates that the deployment is paused.
304
304
// +optional
305
305
Paused bool `json:"paused,omitempty"`
306
306
307
- // The maximum time in seconds for a deployment to make progress before it
307
+ // progressDeadlineSeconds is the maximum time in seconds for a deployment to make progress before it
308
308
// is considered to be failed. The deployment controller will continue to
309
309
// process failed deployments and a condition with a ProgressDeadlineExceeded
310
310
// reason will be surfaced in the deployment status. Note that progress will
@@ -329,7 +329,7 @@ type MachineDeploymentStrategy struct {
329
329
// +optional
330
330
Type MachineDeploymentStrategyType `json:"type,omitempty"`
331
331
332
- // Rolling update config params. Present only if
332
+ // rollingUpdate is the rolling update config params. Present only if
333
333
// MachineDeploymentStrategyType = RollingUpdate.
334
334
// +optional
335
335
RollingUpdate * MachineRollingUpdateDeployment `json:"rollingUpdate,omitempty"`
@@ -346,7 +346,7 @@ type MachineDeploymentStrategy struct {
346
346
347
347
// MachineRollingUpdateDeployment is used to control the desired behavior of rolling update.
348
348
type MachineRollingUpdateDeployment struct {
349
- // The maximum number of machines that can be unavailable during the update.
349
+ // maxUnavailable is the maximum number of machines that can be unavailable during the update.
350
350
// Value can be an absolute number (ex: 5) or a percentage of desired
351
351
// machines (ex: 10%).
352
352
// Absolute number is calculated from percentage by rounding down.
@@ -361,7 +361,7 @@ type MachineRollingUpdateDeployment struct {
361
361
// +optional
362
362
MaxUnavailable * intstr.IntOrString `json:"maxUnavailable,omitempty"`
363
363
364
- // The maximum number of machines that can be scheduled above the
364
+ // maxSurge is the maximum number of machines that can be scheduled above the
365
365
// desired number of machines.
366
366
// Value can be an absolute number (ex: 5) or a percentage of
367
367
// desired machines (ex: 10%).
@@ -416,7 +416,7 @@ type RemediationStrategy struct {
416
416
417
417
// MachineDeploymentStatus defines the observed state of MachineDeployment.
418
418
type MachineDeploymentStatus struct {
419
- // The generation observed by the deployment controller.
419
+ // observedGeneration is the generation observed by the deployment controller.
420
420
// +optional
421
421
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
422
422
@@ -426,26 +426,26 @@ type MachineDeploymentStatus struct {
426
426
// +optional
427
427
Selector string `json:"selector,omitempty"`
428
428
429
- // Total number of non-terminated machines targeted by this deployment
429
+ // replicas is the total number of non-terminated machines targeted by this deployment
430
430
// (their labels match the selector).
431
431
// +optional
432
432
Replicas int32 `json:"replicas"`
433
433
434
- // Total number of non-terminated machines targeted by this deployment
434
+ // updatedReplicas is the total number of non-terminated machines targeted by this deployment
435
435
// that have the desired template spec.
436
436
// +optional
437
437
UpdatedReplicas int32 `json:"updatedReplicas"`
438
438
439
- // Total number of ready machines targeted by this deployment.
439
+ // readyReplicas is the total number of ready machines targeted by this deployment.
440
440
// +optional
441
441
ReadyReplicas int32 `json:"readyReplicas"`
442
442
443
- // Total number of available machines (ready for at least minReadySeconds)
443
+ // availableReplicas is the total number of available machines (ready for at least minReadySeconds)
444
444
// targeted by this deployment.
445
445
// +optional
446
446
AvailableReplicas int32 `json:"availableReplicas"`
447
447
448
- // Total number of unavailable machines targeted by this deployment.
448
+ // unavailableReplicas is the total number of unavailable machines targeted by this deployment.
449
449
// This is the total number of machines that are still required for
450
450
// the deployment to have 100% available capacity. They may either
451
451
// be machines that are running but not yet available or machines
0 commit comments