Skip to content

Commit f784410

Browse files
Update staticcheck exclude-rules for SA1019
1 parent e903eb0 commit f784410

12 files changed

+43
-17
lines changed

.golangci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,18 @@ linters:
196196
- gocritic
197197
path: _test\.go
198198
text: 'deferInLoop: Possible resource leak, ''defer'' is called in the ''for'' loop'
199+
- linters:
200+
- staticcheck
201+
text: 'SA1019: .*(i|s|m)\.IBMPowerVSCluster.Spec.ServiceInstanceID is deprecated: use ServiceInstance instead'
202+
- linters:
203+
- staticcheck
204+
text: 'SA1019: .*(i|s|m)\.IBMPowerVSImage.Spec.ServiceInstanceID is deprecated: use ServiceInstance instead'
205+
- linters:
206+
- staticcheck
207+
text: 'SA1019: .*(i|s|m|params)\.IBMPowerVSMachine.Spec.ServiceInstanceID is deprecated: use ServiceInstance instead'
208+
- linters:
209+
- staticcheck
210+
text: 'SA1019: spec.ServiceInstanceID is deprecated: use ServiceInstance instead'
199211
paths:
200212
- zz_generated.*\.go$
201213
- third_party$
@@ -228,4 +240,4 @@ formatters:
228240
- third_party$
229241
- builtin$
230242
- examples$
231-
- _test\.go
243+
- _test\.go

api/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ type VPCEndpoint struct {
9494
Address *string `json:"address"`
9595

9696
// Deprecated: This field has no function and is going to be removed in the next release.
97-
97+
//
9898
// +optional
9999
FIPID *string `json:"floatingIPID,omitempty"`
100100
// +optional

api/v1beta2/ibmpowervscluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434
type IBMPowerVSClusterSpec struct {
3535

3636
// Deprecated: use ServiceInstance instead
37-
37+
//
3838
// ServiceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
3939
ServiceInstanceID string `json:"serviceInstanceID"`
4040

api/v1beta2/ibmpowervsimage_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type IBMPowerVSImageSpec struct {
3838
ClusterName string `json:"clusterName"`
3939

4040
// Deprecated: use ServiceInstance instead
41-
41+
//
4242
// ServiceInstanceID is the id of the power cloud instance where the image will get imported.
4343
ServiceInstanceID string `json:"serviceInstanceID"`
4444

api/v1beta2/ibmpowervsmachine_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type IBMPowerVSMachineSpec struct {
4949
// Important: Run "make" to regenerate code after modifying this file
5050

5151
// Deprecated: use ServiceInstance instead
52-
52+
//
5353
// ServiceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
5454
ServiceInstanceID string `json:"serviceInstanceID"`
5555

api/v1beta2/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,9 @@ type Subnet struct {
563563
// VPCEndpoint describes a VPCEndpoint.
564564
type VPCEndpoint struct {
565565
Address *string `json:"address"`
566-
// +optional
567566
// Deprecated: This field has no function and is going to be removed in the next release.
568-
567+
//
568+
// +optional
569569
FIPID *string `json:"floatingIPID,omitempty"`
570570
// +optional
571571
LBID *string `json:"loadBalancerIPID,omitempty"`

config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsclusters.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,10 @@ spec:
580580
type: string
581581
type: object
582582
serviceInstanceID:
583-
description: ServiceInstanceID is the id of the power cloud instance
584-
where the vsi instance will get deployed.
583+
description: |-
584+
Deprecated: use ServiceInstance instead
585+
586+
ServiceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
585587
type: string
586588
transitGateway:
587589
description: |-

config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsclustertemplates.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,10 @@ spec:
618618
type: string
619619
type: object
620620
serviceInstanceID:
621-
description: ServiceInstanceID is the id of the power cloud
622-
instance where the vsi instance will get deployed.
621+
description: |-
622+
Deprecated: use ServiceInstance instead
623+
624+
ServiceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
623625
type: string
624626
transitGateway:
625627
description: |-

config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsimages.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ spec:
245245
type: string
246246
type: object
247247
serviceInstanceID:
248-
description: ServiceInstanceID is the id of the power cloud instance
249-
where the image will get imported.
248+
description: |-
249+
Deprecated: use ServiceInstance instead
250+
251+
ServiceInstanceID is the id of the power cloud instance where the image will get imported.
250252
type: string
251253
storageType:
252254
default: tier1

config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsmachines.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,10 @@ spec:
484484
type: string
485485
type: object
486486
serviceInstanceID:
487-
description: ServiceInstanceID is the id of the power cloud instance
488-
where the vsi instance will get deployed.
487+
description: |-
488+
Deprecated: use ServiceInstance instead
489+
490+
ServiceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
489491
type: string
490492
sshKey:
491493
description: SSHKey is the name of the SSH key pair provided to the

0 commit comments

Comments
 (0)