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