Skip to content

Commit 47e9910

Browse files
refactor(golangci-lint): refactor ci errors
1 parent d9fc4b9 commit 47e9910

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

api/v1beta1/azurecluster_webhook_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestAzureCluster_ValidateCreate(t *testing.T) {
3232
wantErr bool
3333
}{
3434
{
35-
name: "azurecluster with pre-existing vnet - valid spec",
35+
name: "azurecluster with pre-existing vnet - valid spec",
3636
cluster: createValidCluster(),
3737
wantErr: false,
3838
},
@@ -137,7 +137,7 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
137137
wantErr: true,
138138
},
139139
{
140-
name: "azurecluster with no control plane endpoint - valid spec",
140+
name: "azurecluster with no control plane endpoint - valid spec",
141141
oldCluster: createValidCluster(),
142142
cluster: func() *AzureCluster {
143143
cluster := createValidCluster()
@@ -150,10 +150,10 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
150150
wantErr: false,
151151
},
152152
{
153-
name: "azurecluster with pre-existing vnet - valid spec",
153+
name: "azurecluster with pre-existing vnet - valid spec",
154154
oldCluster: createValidCluster(),
155-
cluster: createValidCluster(),
156-
wantErr: false,
155+
cluster: createValidCluster(),
156+
wantErr: false,
157157
},
158158
{
159159
name: "azurecluster without pre-existing vnet - valid spec",
@@ -170,7 +170,7 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
170170
wantErr: false,
171171
},
172172
{
173-
name: "azurecluster with pre-existing vnet - lack control plane subnet",
173+
name: "azurecluster with pre-existing vnet - lack control plane subnet",
174174
oldCluster: createValidCluster(),
175175
cluster: func() *AzureCluster {
176176
cluster := createValidCluster()
@@ -180,7 +180,7 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
180180
wantErr: true,
181181
},
182182
{
183-
name: "azurecluster with pre-existing vnet - lack node subnet",
183+
name: "azurecluster with pre-existing vnet - lack node subnet",
184184
oldCluster: createValidCluster(),
185185
cluster: func() *AzureCluster {
186186
cluster := createValidCluster()
@@ -190,7 +190,7 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
190190
wantErr: true,
191191
},
192192
{
193-
name: "azurecluster with pre-existing vnet - invalid resourcegroup name",
193+
name: "azurecluster with pre-existing vnet - invalid resourcegroup name",
194194
oldCluster: createValidCluster(),
195195
cluster: func() *AzureCluster {
196196
cluster := createValidCluster()
@@ -200,7 +200,7 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
200200
wantErr: true,
201201
},
202202
{
203-
name: "azurecluster with pre-existing vnet - invalid subnet name",
203+
name: "azurecluster with pre-existing vnet - invalid subnet name",
204204
oldCluster: createValidCluster(),
205205
cluster: func() *AzureCluster {
206206
cluster := createValidCluster()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ spec:
175175
properties:
176176
cidrBlock:
177177
description: 'CidrBlock is the CIDR block to be used when
178-
the provider creates a managed Vnet. DEPRECATED: Use CIDRBlocks
178+
the provider creates a managed Vnet. Deprecated: Use CIDRBlocks
179179
instead'
180180
type: string
181181
cidrBlocks:
@@ -287,7 +287,7 @@ spec:
287287
properties:
288288
cidrBlock:
289289
description: 'CidrBlock is the CIDR block to be used when
290-
the provider creates a managed virtual network. DEPRECATED:
290+
the provider creates a managed virtual network. Deprecated:
291291
Use CIDRBlocks instead'
292292
type: string
293293
cidrBlocks:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ spec:
8787
public ips for machines where this value is true.
8888
type: boolean
8989
availabilityZone:
90-
description: 'DEPRECATED: use FailureDomain instead'
90+
description: 'Deprecated: use FailureDomain instead'
9191
properties:
9292
enabled:
9393
type: boolean
@@ -258,7 +258,7 @@ spec:
258258
type: object
259259
type: object
260260
location:
261-
description: 'DEPRECATED: to support old clients, will be removed
261+
description: 'Deprecated: to support old clients, will be removed
262262
in v1alpha4/v1beta1'
263263
type: string
264264
osDisk:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ spec:
6767
dynamic public ips for machines where this value is true.
6868
type: boolean
6969
availabilityZone:
70-
description: 'DEPRECATED: use FailureDomain instead'
70+
description: 'Deprecated: use FailureDomain instead'
7171
properties:
7272
enabled:
7373
type: boolean
@@ -246,7 +246,7 @@ spec:
246246
type: object
247247
type: object
248248
location:
249-
description: 'DEPRECATED: to support old clients, will be
249+
description: 'Deprecated: to support old clients, will be
250250
removed in v1alpha4/v1beta1'
251251
type: string
252252
osDisk:

0 commit comments

Comments
 (0)