@@ -341,24 +341,24 @@ const (
341
341
342
342
// MachineSpec defines the desired state of Machine.
343
343
type MachineSpec struct {
344
- // ClusterName is the name of the Cluster this object belongs to.
344
+ // clusterName is the name of the Cluster this object belongs to.
345
345
// +kubebuilder:validation:MinLength=1
346
346
ClusterName string `json:"clusterName"`
347
347
348
- // Bootstrap is a reference to a local struct which encapsulates
348
+ // bootstrap is a reference to a local struct which encapsulates
349
349
// fields to configure the Machine’s bootstrapping mechanism.
350
350
Bootstrap Bootstrap `json:"bootstrap"`
351
351
352
- // InfrastructureRef is a required reference to a custom resource
352
+ // infrastructureRef is a required reference to a custom resource
353
353
// offered by an infrastructure provider.
354
354
InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
355
355
356
- // Version defines the desired Kubernetes version.
356
+ // version defines the desired Kubernetes version.
357
357
// This field is meant to be optionally used by bootstrap providers.
358
358
// +optional
359
359
Version * string `json:"version,omitempty"`
360
360
361
- // ProviderID is the identification ID of the machine provided by the provider.
361
+ // providerID is the identification ID of the machine provided by the provider.
362
362
// This field must match the provider ID as seen on the node object corresponding to this machine.
363
363
// This field is required by higher level consumers of cluster-api. Example use case is cluster autoscaler
364
364
// with cluster-api as provider. Clean-up logic in the autoscaler compares machines to nodes to find out
@@ -371,7 +371,7 @@ type MachineSpec struct {
371
371
// +optional
372
372
ProviderID * string `json:"providerID,omitempty"`
373
373
374
- // FailureDomain is the failure domain the machine will be created in.
374
+ // failureDomain is the failure domain the machine will be created in.
375
375
// Must match a key in the FailureDomains map stored on the cluster object.
376
376
// +optional
377
377
FailureDomain * string `json:"failureDomain,omitempty"`
@@ -400,18 +400,18 @@ type MachineSpec struct {
400
400
// +kubebuilder:validation:MaxItems=32
401
401
ReadinessGates []MachineReadinessGate `json:"readinessGates,omitempty"`
402
402
403
- // NodeDrainTimeout is the total amount of time that the controller will spend on draining a node.
403
+ // nodeDrainTimeout is the total amount of time that the controller will spend on draining a node.
404
404
// The default value is 0, meaning that the node can be drained without any time limitations.
405
405
// NOTE: NodeDrainTimeout is different from `kubectl drain --timeout`
406
406
// +optional
407
407
NodeDrainTimeout * metav1.Duration `json:"nodeDrainTimeout,omitempty"`
408
408
409
- // NodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes
409
+ // nodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes
410
410
// to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations.
411
411
// +optional
412
412
NodeVolumeDetachTimeout * metav1.Duration `json:"nodeVolumeDetachTimeout,omitempty"`
413
413
414
- // NodeDeletionTimeout defines how long the controller will attempt to delete the Node that the Machine
414
+ // nodeDeletionTimeout defines how long the controller will attempt to delete the Node that the Machine
415
415
// hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely.
416
416
// Defaults to 10 seconds.
417
417
// +optional
@@ -436,20 +436,20 @@ type MachineReadinessGate struct {
436
436
437
437
// MachineStatus defines the observed state of Machine.
438
438
type MachineStatus struct {
439
- // NodeRef will point to the corresponding Node if it exists.
439
+ // nodeRef will point to the corresponding Node if it exists.
440
440
// +optional
441
441
NodeRef * corev1.ObjectReference `json:"nodeRef,omitempty"`
442
442
443
- // NodeInfo is a set of ids/uuids to uniquely identify the node.
443
+ // nodeInfo is a set of ids/uuids to uniquely identify the node.
444
444
// More info: https://kubernetes.io/docs/concepts/nodes/node/#info
445
445
// +optional
446
446
NodeInfo * corev1.NodeSystemInfo `json:"nodeInfo,omitempty"`
447
447
448
- // LastUpdated identifies when the phase of the Machine last transitioned.
448
+ // lastUpdated identifies when the phase of the Machine last transitioned.
449
449
// +optional
450
450
LastUpdated * metav1.Time `json:"lastUpdated,omitempty"`
451
451
452
- // FailureReason will be set in the event that there is a terminal problem
452
+ // failureReason will be set in the event that there is a terminal problem
453
453
// reconciling the Machine and will contain a succinct value suitable
454
454
// for machine interpretation.
455
455
//
@@ -468,7 +468,7 @@ type MachineStatus struct {
468
468
// +optional
469
469
FailureReason * capierrors.MachineStatusError `json:"failureReason,omitempty"`
470
470
471
- // FailureMessage will be set in the event that there is a terminal problem
471
+ // failureMessage will be set in the event that there is a terminal problem
472
472
// reconciling the Machine and will contain a more verbose string suitable
473
473
// for logging and human consumption.
474
474
//
@@ -487,34 +487,34 @@ type MachineStatus struct {
487
487
// +optional
488
488
FailureMessage * string `json:"failureMessage,omitempty"`
489
489
490
- // Addresses is a list of addresses assigned to the machine.
490
+ // addresses is a list of addresses assigned to the machine.
491
491
// This field is copied from the infrastructure provider reference.
492
492
// +optional
493
493
Addresses MachineAddresses `json:"addresses,omitempty"`
494
494
495
- // Phase represents the current phase of machine actuation.
495
+ // phase represents the current phase of machine actuation.
496
496
// E.g. Pending, Running, Terminating, Failed etc.
497
497
// +optional
498
498
Phase string `json:"phase,omitempty"`
499
499
500
- // CertificatesExpiryDate is the expiry date of the machine certificates.
500
+ // certificatesExpiryDate is the expiry date of the machine certificates.
501
501
// This value is only set for control plane machines.
502
502
// +optional
503
503
CertificatesExpiryDate * metav1.Time `json:"certificatesExpiryDate,omitempty"`
504
504
505
- // BootstrapReady is the state of the bootstrap provider.
505
+ // bootstrapReady is the state of the bootstrap provider.
506
506
// +optional
507
507
BootstrapReady bool `json:"bootstrapReady"`
508
508
509
- // InfrastructureReady is the state of the infrastructure provider.
509
+ // infrastructureReady is the state of the infrastructure provider.
510
510
// +optional
511
511
InfrastructureReady bool `json:"infrastructureReady"`
512
512
513
- // ObservedGeneration is the latest generation observed by the controller.
513
+ // observedGeneration is the latest generation observed by the controller.
514
514
// +optional
515
515
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
516
516
517
- // Conditions defines current service state of the Machine.
517
+ // conditions defines current service state of the Machine.
518
518
// +optional
519
519
Conditions Conditions `json:"conditions,omitempty"`
520
520
@@ -590,14 +590,14 @@ func (m *MachineStatus) GetTypedPhase() MachinePhase {
590
590
591
591
// Bootstrap encapsulates fields to configure the Machine’s bootstrapping mechanism.
592
592
type Bootstrap struct {
593
- // ConfigRef is a reference to a bootstrap provider-specific resource
593
+ // configRef is a reference to a bootstrap provider-specific resource
594
594
// that holds configuration details. The reference is optional to
595
595
// allow users/operators to specify Bootstrap.DataSecretName without
596
596
// the need of a controller.
597
597
// +optional
598
598
ConfigRef * corev1.ObjectReference `json:"configRef,omitempty"`
599
599
600
- // DataSecretName is the name of the secret that stores the bootstrap data script.
600
+ // dataSecretName is the name of the secret that stores the bootstrap data script.
601
601
// If nil, the Machine should remain in the Pending state.
602
602
// +optional
603
603
DataSecretName * string `json:"dataSecretName,omitempty"`
0 commit comments