Skip to content

Commit 84ab8c1

Browse files
committed
Fix godoc manually by simply replacing existing comments
1 parent 3a66e8f commit 84ab8c1

36 files changed

+189
-189
lines changed

api/v1beta1/cluster_types.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ type ClusterSpec struct {
465465
// +optional
466466
Paused bool `json:"paused,omitempty"`
467467

468-
// Cluster network configuration.
468+
// clusterNetwork represents the cluster network configuration.
469469
// +optional
470470
ClusterNetwork *ClusterNetwork `json:"clusterNetwork,omitempty"`
471471

@@ -514,10 +514,10 @@ type ClusterAvailabilityGate struct {
514514

515515
// Topology encapsulates the information of the managed resources.
516516
type Topology struct {
517-
// The name of the ClusterClass object to create the topology.
517+
// class is the name of the ClusterClass object to create the topology.
518518
Class string `json:"class"`
519519

520-
// The Kubernetes version of the cluster.
520+
// version is the Kubernetes version of the cluster.
521521
Version string `json:"version"`
522522

523523
// rolloutAfter performs a rollout of the entire cluster one component at a time,
@@ -657,14 +657,14 @@ type MachineDeploymentTopology struct {
657657
// +optional
658658
NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"`
659659

660-
// Minimum number of seconds for which a newly created machine should
660+
// minReadySeconds is the minimum number of seconds for which a newly created machine should
661661
// be ready.
662662
// Defaults to 0 (machine will be considered available as soon as it
663663
// is ready)
664664
// +optional
665665
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
666666

667-
// The deployment strategy to use to replace existing machines with
667+
// strategy is the deployment strategy to use to replace existing machines with
668668
// new ones.
669669
// +optional
670670
Strategy *MachineDeploymentStrategy `json:"strategy,omitempty"`
@@ -734,7 +734,7 @@ type MachinePoolTopology struct {
734734
// +optional
735735
NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"`
736736

737-
// Minimum number of seconds for which a newly created machine pool should
737+
// minReadySeconds is the minimum number of seconds for which a newly created machine pool should
738738
// be ready.
739739
// Defaults to 0 (machine will be considered available as soon as it
740740
// is ready)
@@ -815,15 +815,15 @@ type ClusterNetwork struct {
815815
// +optional
816816
APIServerPort *int32 `json:"apiServerPort,omitempty"`
817817

818-
// The network ranges from which service VIPs are allocated.
818+
// services is the network ranges from which service VIPs are allocated.
819819
// +optional
820820
Services *NetworkRanges `json:"services,omitempty"`
821821

822-
// The network ranges from which Pod networks are allocated.
822+
// pods is the network ranges from which Pod networks are allocated.
823823
// +optional
824824
Pods *NetworkRanges `json:"pods,omitempty"`
825825

826-
// Domain name for services.
826+
// serviceDomain is the domain name for services.
827827
// +optional
828828
ServiceDomain string `json:"serviceDomain,omitempty"`
829829
}
@@ -998,10 +998,10 @@ func (c *ClusterStatus) GetTypedPhase() ClusterPhase {
998998

999999
// APIEndpoint represents a reachable Kubernetes API endpoint.
10001000
type APIEndpoint struct {
1001-
// The hostname on which the API server is serving.
1001+
// host is the hostname on which the API server is serving.
10021002
Host string `json:"host"`
10031003

1004-
// The port on which the API server is serving.
1004+
// port is the port on which the API server is serving.
10051005
Port int32 `json:"port"`
10061006
}
10071007

api/v1beta1/clusterclass_types.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@ type MachineDeploymentClass struct {
243243
// +optional
244244
NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"`
245245

246-
// Minimum number of seconds for which a newly created machine should
246+
// minReadySeconds is the minimum number of seconds for which a newly created machine should
247247
// be ready.
248248
// Defaults to 0 (machine will be considered available as soon as it
249249
// is ready)
250250
// NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
251251
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
252252

253-
// The deployment strategy to use to replace existing machines with
253+
// strategy is the deployment strategy to use to replace existing machines with
254254
// new ones.
255255
// NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
256256
Strategy *MachineDeploymentStrategy `json:"strategy,omitempty"`
@@ -377,7 +377,7 @@ type MachinePoolClass struct {
377377
// +optional
378378
NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"`
379379

380-
// Minimum number of seconds for which a newly created machine pool should
380+
// minReadySeconds is the minimum number of seconds for which a newly created machine pool should
381381
// be ready.
382382
// Defaults to 0 (machine will be considered available as soon as it
383383
// is ready)
@@ -452,7 +452,7 @@ type ClusterClassVariable struct {
452452
//
453453
// Deprecated: This struct is deprecated and is going to be removed in the next apiVersion.
454454
type ClusterClassVariableMetadata struct {
455-
// Map of string keys and values that can be used to organize and categorize
455+
// labels is a map of string keys and values that can be used to organize and categorize
456456
// (scope and select) variables.
457457
// +optional
458458
Labels map[string]string `json:"labels,omitempty"`
@@ -673,7 +673,7 @@ type JSONSchemaProps struct {
673673
// VariableSchemaMetadata is the metadata of a variable or a nested field within a variable.
674674
// It can be used to add additional data for higher level tools.
675675
type VariableSchemaMetadata struct {
676-
// Map of string keys and values that can be used to organize and categorize
676+
// labels is a map of string keys and values that can be used to organize and categorize
677677
// (scope and select) variables.
678678
// +optional
679679
Labels map[string]string `json:"labels,omitempty"`

api/v1beta1/common_types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ const (
273273

274274
// MachineAddress contains information for the node's address.
275275
type MachineAddress struct {
276-
// Machine address type, one of Hostname, ExternalIP, InternalIP, ExternalDNS or InternalDNS.
276+
// type is the machine address type, one of Hostname, ExternalIP, InternalIP, ExternalDNS or InternalDNS.
277277
Type MachineAddressType `json:"type"`
278278

279-
// The machine address.
279+
// address is the machine address.
280280
Address string `json:"address"`
281281
}
282282

@@ -305,7 +305,7 @@ type MachineAddresses []MachineAddress
305305
// In future versions, controller-tools@v2 might allow overriding the type and validation for embedded
306306
// types. When that happens, this hack should be revisited.
307307
type ObjectMeta struct {
308-
// Map of string keys and values that can be used to organize and categorize
308+
// labels is a map of string keys and values that can be used to organize and categorize
309309
// (scope and select) objects. May match selectors of replication controllers
310310
// and services.
311311
// More info: http://kubernetes.io/docs/user-guide/labels

api/v1beta1/condition_types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ type Condition struct {
6767
// +optional
6868
Severity ConditionSeverity `json:"severity,omitempty"`
6969

70-
// Last time the condition transitioned from one status to another.
70+
// lastTransitionTime is the last time the condition transitioned from one status to another.
7171
// This should be when the underlying condition changed. If that is not known, then using the time when
7272
// the API field changed is acceptable.
7373
LastTransitionTime metav1.Time `json:"lastTransitionTime"`
7474

75-
// The reason for the condition's last transition in CamelCase.
75+
// reason is the reason for the condition's last transition in CamelCase.
7676
// The specific API may choose whether or not this field is considered a guaranteed API.
7777
// This field may be empty.
7878
// +optional
7979
Reason string `json:"reason,omitempty"`
8080

81-
// A human readable message indicating details about the transition.
81+
// message is a human readable message indicating details about the transition.
8282
// This field may be empty.
8383
// +optional
8484
Message string `json:"message,omitempty"`

api/v1beta1/machinedeployment_types.go

+15-15
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ type MachineDeploymentSpec struct {
244244
// +kubebuilder:validation:MinLength=1
245245
ClusterName string `json:"clusterName"`
246246

247-
// Number of desired machines.
247+
// replicas is the number of desired machines.
248248
// This is a pointer to distinguish between explicit zero and not specified.
249249
//
250250
// Defaults to:
@@ -273,15 +273,15 @@ type MachineDeploymentSpec struct {
273273
// +optional
274274
RolloutAfter *metav1.Time `json:"rolloutAfter,omitempty"`
275275

276-
// Label selector for machines. Existing MachineSets whose machines are
276+
// selector is the label selector for machines. Existing MachineSets whose machines are
277277
// selected by this will be the ones affected by this deployment.
278278
// It must match the machine template's labels.
279279
Selector metav1.LabelSelector `json:"selector"`
280280

281281
// template describes the machines that will be created.
282282
Template MachineTemplateSpec `json:"template"`
283283

284-
// The deployment strategy to use to replace existing machines with
284+
// strategy is the deployment strategy to use to replace existing machines with
285285
// new ones.
286286
// +optional
287287
Strategy *MachineDeploymentStrategy `json:"strategy,omitempty"`
@@ -291,7 +291,7 @@ type MachineDeploymentSpec struct {
291291
// +optional
292292
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
293293

294-
// The number of old MachineSets to retain to allow rollback.
294+
// revisionHistoryLimit is the number of old MachineSets to retain to allow rollback.
295295
// This is a pointer to distinguish between explicit zero and not specified.
296296
// Defaults to 1.
297297
//
@@ -300,11 +300,11 @@ type MachineDeploymentSpec struct {
300300
// +optional
301301
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
302302

303-
// Indicates that the deployment is paused.
303+
// paused indicates that the deployment is paused.
304304
// +optional
305305
Paused bool `json:"paused,omitempty"`
306306

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
308308
// is considered to be failed. The deployment controller will continue to
309309
// process failed deployments and a condition with a ProgressDeadlineExceeded
310310
// reason will be surfaced in the deployment status. Note that progress will
@@ -329,7 +329,7 @@ type MachineDeploymentStrategy struct {
329329
// +optional
330330
Type MachineDeploymentStrategyType `json:"type,omitempty"`
331331

332-
// Rolling update config params. Present only if
332+
// rollingUpdate is the rolling update config params. Present only if
333333
// MachineDeploymentStrategyType = RollingUpdate.
334334
// +optional
335335
RollingUpdate *MachineRollingUpdateDeployment `json:"rollingUpdate,omitempty"`
@@ -346,7 +346,7 @@ type MachineDeploymentStrategy struct {
346346

347347
// MachineRollingUpdateDeployment is used to control the desired behavior of rolling update.
348348
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.
350350
// Value can be an absolute number (ex: 5) or a percentage of desired
351351
// machines (ex: 10%).
352352
// Absolute number is calculated from percentage by rounding down.
@@ -361,7 +361,7 @@ type MachineRollingUpdateDeployment struct {
361361
// +optional
362362
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
363363

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
365365
// desired number of machines.
366366
// Value can be an absolute number (ex: 5) or a percentage of
367367
// desired machines (ex: 10%).
@@ -416,7 +416,7 @@ type RemediationStrategy struct {
416416

417417
// MachineDeploymentStatus defines the observed state of MachineDeployment.
418418
type MachineDeploymentStatus struct {
419-
// The generation observed by the deployment controller.
419+
// observedGeneration is the generation observed by the deployment controller.
420420
// +optional
421421
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
422422

@@ -426,26 +426,26 @@ type MachineDeploymentStatus struct {
426426
// +optional
427427
Selector string `json:"selector,omitempty"`
428428

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
430430
// (their labels match the selector).
431431
// +optional
432432
Replicas int32 `json:"replicas"`
433433

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
435435
// that have the desired template spec.
436436
// +optional
437437
UpdatedReplicas int32 `json:"updatedReplicas"`
438438

439-
// Total number of ready machines targeted by this deployment.
439+
// readyReplicas is the total number of ready machines targeted by this deployment.
440440
// +optional
441441
ReadyReplicas int32 `json:"readyReplicas"`
442442

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)
444444
// targeted by this deployment.
445445
// +optional
446446
AvailableReplicas int32 `json:"availableReplicas"`
447447

448-
// Total number of unavailable machines targeted by this deployment.
448+
// unavailableReplicas is the total number of unavailable machines targeted by this deployment.
449449
// This is the total number of machines that are still required for
450450
// the deployment to have 100% available capacity. They may either
451451
// be machines that are running but not yet available or machines

api/v1beta1/machinehealthcheck_types.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type MachineHealthCheckSpec struct {
5555
// +kubebuilder:validation:MinLength=1
5656
ClusterName string `json:"clusterName"`
5757

58-
// Label selector to match machines whose health will be exercised
58+
// selector is a label selector to match machines whose health will be exercised
5959
Selector metav1.LabelSelector `json:"selector"`
6060

6161
// unhealthyConditions contains a list of the conditions that determine
@@ -135,12 +135,12 @@ type UnhealthyCondition struct {
135135

136136
// MachineHealthCheckStatus defines the observed state of MachineHealthCheck.
137137
type MachineHealthCheckStatus struct {
138-
// total number of machines counted by this machine health check
138+
// expectedMachines is the total number of machines counted by this machine health check
139139
// +kubebuilder:validation:Minimum=0
140140
// +optional
141141
ExpectedMachines int32 `json:"expectedMachines"`
142142

143-
// total number of healthy machines counted by this machine health check
143+
// currentHealthy is the total number of healthy machines counted by this machine health check
144144
// +kubebuilder:validation:Minimum=0
145145
// +optional
146146
CurrentHealthy int32 `json:"currentHealthy"`
@@ -197,10 +197,10 @@ type MachineHealthCheck struct {
197197
metav1.TypeMeta `json:",inline"`
198198
metav1.ObjectMeta `json:"metadata,omitempty"`
199199

200-
// Specification of machine health check policy
200+
// spec is the specification of machine health check policy
201201
Spec MachineHealthCheckSpec `json:"spec,omitempty"`
202202

203-
// Most recently observed status of MachineHealthCheck resource
203+
// status is the most recently observed status of MachineHealthCheck resource
204204
Status MachineHealthCheckStatus `json:"status,omitempty"`
205205
}
206206

api/v1beta1/machineset_types.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ type MachineTemplateSpec struct {
236236
// +optional
237237
ObjectMeta `json:"metadata,omitempty"`
238238

239-
// Specification of the desired behavior of the machine.
239+
// spec is the specification of the desired behavior of the machine.
240240
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
241241
// +optional
242242
Spec MachineSpec `json:"spec,omitempty"`
@@ -285,18 +285,18 @@ type MachineSetStatus struct {
285285
// +optional
286286
Replicas int32 `json:"replicas"`
287287

288-
// The number of replicas that have labels matching the labels of the machine template of the MachineSet.
288+
// fullyLabeledReplicas is the number of replicas that have labels matching the labels of the machine template of the MachineSet.
289289
//
290290
// Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.
291291
//
292292
// +optional
293293
FullyLabeledReplicas int32 `json:"fullyLabeledReplicas"`
294294

295-
// The number of ready replicas for this MachineSet. A machine is considered ready when the node has been created and is "Ready".
295+
// readyReplicas is the number of ready replicas for this MachineSet. A machine is considered ready when the node has been created and is "Ready".
296296
// +optional
297297
ReadyReplicas int32 `json:"readyReplicas"`
298298

299-
// The number of available replicas (ready for at least minReadySeconds) for this MachineSet.
299+
// availableReplicas is the number of available replicas (ready for at least minReadySeconds) for this MachineSet.
300300
// +optional
301301
AvailableReplicas int32 `json:"availableReplicas"`
302302

bootstrap/kubeadm/api/v1beta1/kubeadm_types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ type ClusterConfiguration struct {
142142
// +optional
143143
FeatureGates map[string]bool `json:"featureGates,omitempty"`
144144

145-
// The cluster name
145+
// clusterName is the cluster name
146146
// +optional
147147
ClusterName string `json:"clusterName,omitempty"`
148148
}
@@ -634,7 +634,7 @@ type KubeConfigAuthExec struct {
634634
// command to execute.
635635
Command string `json:"command"`
636636

637-
// Arguments to pass to the command when executing it.
637+
// args is the arguments to pass to the command when executing it.
638638
// +optional
639639
Args []string `json:"args,omitempty"`
640640

@@ -644,7 +644,7 @@ type KubeConfigAuthExec struct {
644644
// +optional
645645
Env []KubeConfigAuthExecEnv `json:"env,omitempty"`
646646

647-
// Preferred input version of the ExecInfo. The returned ExecCredentials MUST use
647+
// apiVersion is preferred input version of the ExecInfo. The returned ExecCredentials MUST use
648648
// the same encoding version as the input.
649649
// Defaults to client.authentication.k8s.io/v1 if not set.
650650
// +optional

bootstrap/kubeadm/api/v1beta1/kubeadmconfigtemplate_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type KubeadmConfigTemplateSpec struct {
2929

3030
// KubeadmConfigTemplateResource defines the Template structure.
3131
type KubeadmConfigTemplateResource struct {
32-
// Standard object's metadata.
32+
// metadata is the standard object's metadata.
3333
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
3434
// +optional
3535
ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`

0 commit comments

Comments
 (0)