@@ -90,24 +90,24 @@ const (
90
90
91
91
// MachineSpec defines the desired state of Machine.
92
92
type MachineSpec struct {
93
- // ClusterName is the name of the Cluster this object belongs to.
93
+ // clusterName is the name of the Cluster this object belongs to.
94
94
// +kubebuilder:validation:MinLength=1
95
95
ClusterName string `json:"clusterName"`
96
96
97
- // Bootstrap is a reference to a local struct which encapsulates
97
+ // bootstrap is a reference to a local struct which encapsulates
98
98
// fields to configure the Machine’s bootstrapping mechanism.
99
99
Bootstrap Bootstrap `json:"bootstrap"`
100
100
101
- // InfrastructureRef is a required reference to a custom resource
101
+ // infrastructureRef is a required reference to a custom resource
102
102
// offered by an infrastructure provider.
103
103
InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
104
104
105
- // Version defines the desired Kubernetes version.
105
+ // version defines the desired Kubernetes version.
106
106
// This field is meant to be optionally used by bootstrap providers.
107
107
// +optional
108
108
Version * string `json:"version,omitempty"`
109
109
110
- // ProviderID is the identification ID of the machine provided by the provider.
110
+ // providerID is the identification ID of the machine provided by the provider.
111
111
// This field must match the provider ID as seen on the node object corresponding to this machine.
112
112
// This field is required by higher level consumers of cluster-api. Example use case is cluster autoscaler
113
113
// with cluster-api as provider. Clean-up logic in the autoscaler compares machines to nodes to find out
@@ -120,7 +120,7 @@ type MachineSpec struct {
120
120
// +optional
121
121
ProviderID * string `json:"providerID,omitempty"`
122
122
123
- // FailureDomain is the failure domain the machine will be created in.
123
+ // failureDomain is the failure domain the machine will be created in.
124
124
// Must match a key in the FailureDomains map stored on the cluster object.
125
125
// +optional
126
126
FailureDomain * string `json:"failureDomain,omitempty"`
@@ -149,18 +149,18 @@ type MachineSpec struct {
149
149
// +kubebuilder:validation:MaxItems=32
150
150
ReadinessGates []MachineReadinessGate `json:"readinessGates,omitempty"`
151
151
152
- // NodeDrainTimeout is the total amount of time that the controller will spend on draining a node.
152
+ // nodeDrainTimeout is the total amount of time that the controller will spend on draining a node.
153
153
// The default value is 0, meaning that the node can be drained without any time limitations.
154
154
// NOTE: NodeDrainTimeout is different from `kubectl drain --timeout`
155
155
// +optional
156
156
NodeDrainTimeout * metav1.Duration `json:"nodeDrainTimeout,omitempty"`
157
157
158
- // NodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes
158
+ // nodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes
159
159
// to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations.
160
160
// +optional
161
161
NodeVolumeDetachTimeout * metav1.Duration `json:"nodeVolumeDetachTimeout,omitempty"`
162
162
163
- // NodeDeletionTimeout defines how long the controller will attempt to delete the Node that the Machine
163
+ // nodeDeletionTimeout defines how long the controller will attempt to delete the Node that the Machine
164
164
// hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely.
165
165
// Defaults to 10 seconds.
166
166
// +optional
@@ -185,20 +185,20 @@ type MachineReadinessGate struct {
185
185
186
186
// MachineStatus defines the observed state of Machine.
187
187
type MachineStatus struct {
188
- // NodeRef will point to the corresponding Node if it exists.
188
+ // nodeRef will point to the corresponding Node if it exists.
189
189
// +optional
190
190
NodeRef * corev1.ObjectReference `json:"nodeRef,omitempty"`
191
191
192
- // NodeInfo is a set of ids/uuids to uniquely identify the node.
192
+ // nodeInfo is a set of ids/uuids to uniquely identify the node.
193
193
// More info: https://kubernetes.io/docs/concepts/nodes/node/#info
194
194
// +optional
195
195
NodeInfo * corev1.NodeSystemInfo `json:"nodeInfo,omitempty"`
196
196
197
- // LastUpdated identifies when the phase of the Machine last transitioned.
197
+ // lastUpdated identifies when the phase of the Machine last transitioned.
198
198
// +optional
199
199
LastUpdated * metav1.Time `json:"lastUpdated,omitempty"`
200
200
201
- // FailureReason will be set in the event that there is a terminal problem
201
+ // failureReason will be set in the event that there is a terminal problem
202
202
// reconciling the Machine and will contain a succinct value suitable
203
203
// for machine interpretation.
204
204
//
@@ -217,7 +217,7 @@ type MachineStatus struct {
217
217
// +optional
218
218
FailureReason * capierrors.MachineStatusError `json:"failureReason,omitempty"`
219
219
220
- // FailureMessage will be set in the event that there is a terminal problem
220
+ // failureMessage will be set in the event that there is a terminal problem
221
221
// reconciling the Machine and will contain a more verbose string suitable
222
222
// for logging and human consumption.
223
223
//
@@ -236,34 +236,34 @@ type MachineStatus struct {
236
236
// +optional
237
237
FailureMessage * string `json:"failureMessage,omitempty"`
238
238
239
- // Addresses is a list of addresses assigned to the machine.
239
+ // addresses is a list of addresses assigned to the machine.
240
240
// This field is copied from the infrastructure provider reference.
241
241
// +optional
242
242
Addresses MachineAddresses `json:"addresses,omitempty"`
243
243
244
- // Phase represents the current phase of machine actuation.
244
+ // phase represents the current phase of machine actuation.
245
245
// E.g. Pending, Running, Terminating, Failed etc.
246
246
// +optional
247
247
Phase string `json:"phase,omitempty"`
248
248
249
- // CertificatesExpiryDate is the expiry date of the machine certificates.
249
+ // certificatesExpiryDate is the expiry date of the machine certificates.
250
250
// This value is only set for control plane machines.
251
251
// +optional
252
252
CertificatesExpiryDate * metav1.Time `json:"certificatesExpiryDate,omitempty"`
253
253
254
- // BootstrapReady is the state of the bootstrap provider.
254
+ // bootstrapReady is the state of the bootstrap provider.
255
255
// +optional
256
256
BootstrapReady bool `json:"bootstrapReady"`
257
257
258
- // InfrastructureReady is the state of the infrastructure provider.
258
+ // infrastructureReady is the state of the infrastructure provider.
259
259
// +optional
260
260
InfrastructureReady bool `json:"infrastructureReady"`
261
261
262
- // ObservedGeneration is the latest generation observed by the controller.
262
+ // observedGeneration is the latest generation observed by the controller.
263
263
// +optional
264
264
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
265
265
266
- // Conditions defines current service state of the Machine.
266
+ // conditions defines current service state of the Machine.
267
267
// +optional
268
268
Conditions Conditions `json:"conditions,omitempty"`
269
269
@@ -339,14 +339,14 @@ func (m *MachineStatus) GetTypedPhase() MachinePhase {
339
339
340
340
// Bootstrap encapsulates fields to configure the Machine’s bootstrapping mechanism.
341
341
type Bootstrap struct {
342
- // ConfigRef is a reference to a bootstrap provider-specific resource
342
+ // configRef is a reference to a bootstrap provider-specific resource
343
343
// that holds configuration details. The reference is optional to
344
344
// allow users/operators to specify Bootstrap.DataSecretName without
345
345
// the need of a controller.
346
346
// +optional
347
347
ConfigRef * corev1.ObjectReference `json:"configRef,omitempty"`
348
348
349
- // DataSecretName is the name of the secret that stores the bootstrap data script.
349
+ // dataSecretName is the name of the secret that stores the bootstrap data script.
350
350
// If nil, the Machine should remain in the Pending state.
351
351
// +optional
352
352
DataSecretName * string `json:"dataSecretName,omitempty"`
0 commit comments