Skip to content

Commit f664bcc

Browse files
authored
Merge pull request #2260 from MrDXY/pr-golangci-sync-dupword
🌱 lint: fix duplicated words via dupword linter
2 parents 5661ea2 + b16216e commit f664bcc

File tree

14 files changed

+25
-28
lines changed

14 files changed

+25
-28
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ linters:
1515
- bodyclose
1616
# - containedctx
1717
- dogsled
18-
# - dupword
18+
- dupword
1919
- durationcheck
2020
- errcheck
2121
# - errchkjson

apis/v1alpha3/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ type VirtualMachine struct {
342342
// Network is the status of the VM's network devices.
343343
Network []NetworkStatus `json:"network"`
344344

345-
// VMRef is the the VM's Managed Object Reference on vSphere.
345+
// VMRef is the VM's Managed Object Reference on vSphere.
346346
VMRef string `json:"vmRef"`
347347
}
348348

apis/v1alpha3/vspherevm_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type VSphereVMSpec struct {
4141
// +optional
4242
BootstrapRef *corev1.ObjectReference `json:"bootstrapRef,omitempty"`
4343

44-
// BiosUUID is the the VM's BIOS UUID that is assigned at runtime after
44+
// BiosUUID is the VM's BIOS UUID that is assigned at runtime after
4545
// the VM has been created.
4646
// This field is required at runtime for other controllers that read
4747
// this CRD as unstructured data.

apis/v1alpha4/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ type VirtualMachine struct {
342342
// Network is the status of the VM's network devices.
343343
Network []NetworkStatus `json:"network"`
344344

345-
// VMRef is the the VM's Managed Object Reference on vSphere.
345+
// VMRef is the VM's Managed Object Reference on vSphere.
346346
VMRef string `json:"vmRef"`
347347
}
348348

apis/v1alpha4/vspherevm_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type VSphereVMSpec struct {
4141
// +optional
4242
BootstrapRef *corev1.ObjectReference `json:"bootstrapRef,omitempty"`
4343

44-
// BiosUUID is the the VM's BIOS UUID that is assigned at runtime after
44+
// BiosUUID is the VM's BIOS UUID that is assigned at runtime after
4545
// the VM has been created.
4646
// This field is required at runtime for other controllers that read
4747
// this CRD as unstructured data.

apis/v1beta1/condition_consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const (
9292
// retry the operation, but a user intervention might be required to fix the problem.
9393
TaskFailure = "TaskFailure"
9494

95-
// WaitingForNetworkAddressesReason (Severity=Info) documents a VSphereMachine waiting for the the machine network
95+
// WaitingForNetworkAddressesReason (Severity=Info) documents a VSphereMachine waiting for the machine network
9696
// settings to be reported after machine being powered on.
9797
//
9898
// NOTE: This reason does not apply to VSphereVM (this state happens after the VSphereVM is in ready state).

apis/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ type VirtualMachine struct {
489489
// Network is the status of the VM's network devices.
490490
Network []NetworkStatus `json:"network"`
491491

492-
// VMRef is the the VM's Managed Object Reference on vSphere.
492+
// VMRef is the VM's Managed Object Reference on vSphere.
493493
VMRef string `json:"vmRef"`
494494
}
495495

apis/v1beta1/vspherevm_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type VSphereVMSpec struct {
5252
// +optional
5353
BootstrapRef *corev1.ObjectReference `json:"bootstrapRef,omitempty"`
5454

55-
// BiosUUID is the the VM's BIOS UUID that is assigned at runtime after
55+
// BiosUUID is the VM's BIOS UUID that is assigned at runtime after
5656
// the VM has been created.
5757
// This field is required at runtime for other controllers that read
5858
// this CRD as unstructured data.
@@ -174,7 +174,7 @@ type VSphereVMStatus struct {
174174
// +optional
175175
ModuleUUID *string `json:"moduleUUID,omitempty"`
176176

177-
// VMRef is the the VM's Managed Object Reference on vSphere. It can be used by consumers
177+
// VMRef is the VM's Managed Object Reference on vSphere. It can be used by consumers
178178
// to programatically get this VM representation on vSphere in case of the need to retrieve informations.
179179
// This field is set once the machine is created and should not be changed
180180
// +optional

apis/vmware/v1beta1/conditions_consts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ const (
6464
VMProvisionStartedReason = "VMProvisionStarted"
6565
// PoweringOnReason documents (Severity=Info) a Virtual Machine currently executing the power on sequence.
6666
PoweringOnReason = "PoweringOn"
67-
// WaitingForNetworkAddressReason (Severity=Info) documents a VSphereMachine waiting for the the machine network
67+
// WaitingForNetworkAddressReason (Severity=Info) documents a VSphereMachine waiting for the machine network
6868
// settings to be reported after machine being powered on.
6969
WaitingForNetworkAddressReason = "WaitingForNetworkAddress"
70-
// WaitingForBIOSUUIDReason (Severity=Info) documents a VSphereMachine waiting for the the machine to have a BIOS UUID.
70+
// WaitingForBIOSUUIDReason (Severity=Info) documents a VSphereMachine waiting for the machine to have a BIOS UUID.
7171
WaitingForBIOSUUIDReason = "WaitingForBIOSUUID"
7272
)
7373

config/default/crd/bases/infrastructure.cluster.x-k8s.io_vspherevms.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ spec:
3939
description: VSphereVMSpec defines the desired state of VSphereVM.
4040
properties:
4141
biosUUID:
42-
description: BiosUUID is the the VM's BIOS UUID that is assigned at
43-
runtime after the VM has been created. This field is required at
44-
runtime for other controllers that read this CRD as unstructured
45-
data.
42+
description: BiosUUID is the VM's BIOS UUID that is assigned at runtime
43+
after the VM has been created. This field is required at runtime
44+
for other controllers that read this CRD as unstructured data.
4645
type: string
4746
bootstrapRef:
4847
description: BootstrapRef is a reference to a bootstrap provider-specific
@@ -453,10 +452,9 @@ spec:
453452
description: VSphereVMSpec defines the desired state of VSphereVM.
454453
properties:
455454
biosUUID:
456-
description: BiosUUID is the the VM's BIOS UUID that is assigned at
457-
runtime after the VM has been created. This field is required at
458-
runtime for other controllers that read this CRD as unstructured
459-
data.
455+
description: BiosUUID is the VM's BIOS UUID that is assigned at runtime
456+
after the VM has been created. This field is required at runtime
457+
for other controllers that read this CRD as unstructured data.
460458
type: string
461459
bootstrapRef:
462460
description: BootstrapRef is a reference to a bootstrap provider-specific
@@ -873,10 +871,9 @@ spec:
873871
type: integer
874872
type: array
875873
biosUUID:
876-
description: BiosUUID is the the VM's BIOS UUID that is assigned at
877-
runtime after the VM has been created. This field is required at
878-
runtime for other controllers that read this CRD as unstructured
879-
data.
874+
description: BiosUUID is the VM's BIOS UUID that is assigned at runtime
875+
after the VM has been created. This field is required at runtime
876+
for other controllers that read this CRD as unstructured data.
880877
type: string
881878
bootstrapRef:
882879
description: BootstrapRef is a reference to a bootstrap provider-specific
@@ -1463,7 +1460,7 @@ spec:
14631460
not be set or modified by users.
14641461
type: string
14651462
vmRef:
1466-
description: VMRef is the the VM's Managed Object Reference on vSphere.
1463+
description: VMRef is the VM's Managed Object Reference on vSphere.
14671464
It can be used by consumers to programatically get this VM representation
14681465
on vSphere in case of the need to retrieve informations. This field
14691466
is set once the machine is created and should not be changed

0 commit comments

Comments
 (0)