Skip to content

Commit 416d951

Browse files
committed
Change go version to 1.22
1 parent e57f9d4 commit 416d951

25 files changed

+668
-474
lines changed

.github/workflows/go-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.19.3
17+
go-version: 1.22.4
1818
- name: Run go test with coverage
1919
run: COVER_PROFILE=coverage.txt make test
2020
- name: Codecov upload

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ lint: $(GOLANGCI_LINT) $(STATIC_CHECK) generate-mocks ## Run linting for the pro
129129

130130
.PHONY: modules
131131
modules: ## Runs go mod to ensure proper vendoring.
132-
go mod tidy -compat=1.19
133-
cd $(TOOLS_DIR); go mod tidy -compat=1.19
132+
go mod tidy -compat=1.22
133+
cd $(TOOLS_DIR); go mod tidy -compat=1.22
134134

135135
.PHONY: generate-all
136136
generate-all: generate-mocks generate-deepcopy generate-manifests

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta2/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta3/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 43 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.3
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.15.0
87
name: cloudstackaffinitygroups.infrastructure.cluster.x-k8s.io
98
spec:
109
group: infrastructure.cluster.x-k8s.io
@@ -22,14 +21,19 @@ spec:
2221
API
2322
properties:
2423
apiVersion:
25-
description: 'APIVersion defines the versioned schema of this representation
26-
of an object. Servers should convert recognized schemas to the latest
27-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2829
type: string
2930
kind:
30-
description: 'Kind is a string value representing the REST resource this
31-
object represents. Servers may infer this from the endpoint the client
32-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3337
type: string
3438
metadata:
3539
type: object
@@ -44,9 +48,9 @@ spec:
4448
description: Name.
4549
type: string
4650
type:
47-
description: Mutually exclusive parameter with AffinityGroupIDs. Can
48-
be "host affinity" or "host anti-affinity". Will create an affinity
49-
group per machine set.
51+
description: |-
52+
Mutually exclusive parameter with AffinityGroupIDs.
53+
Can be "host affinity" or "host anti-affinity". Will create an affinity group per machine set.
5054
type: string
5155
type: object
5256
status:
@@ -71,14 +75,19 @@ spec:
7175
API
7276
properties:
7377
apiVersion:
74-
description: 'APIVersion defines the versioned schema of this representation
75-
of an object. Servers should convert recognized schemas to the latest
76-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
78+
description: |-
79+
APIVersion defines the versioned schema of this representation of an object.
80+
Servers should convert recognized schemas to the latest internal value, and
81+
may reject unrecognized values.
82+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
7783
type: string
7884
kind:
79-
description: 'Kind is a string value representing the REST resource this
80-
object represents. Servers may infer this from the endpoint the client
81-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
85+
description: |-
86+
Kind is a string value representing the REST resource this object represents.
87+
Servers may infer this from the endpoint the client submits requests to.
88+
Cannot be updated.
89+
In CamelCase.
90+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
8291
type: string
8392
metadata:
8493
type: object
@@ -97,9 +106,9 @@ spec:
97106
description: Name.
98107
type: string
99108
type:
100-
description: Mutually exclusive parameter with AffinityGroupIDs. Can
101-
be "host affinity" or "host anti-affinity". Will create an affinity
102-
group per machine set.
109+
description: |-
110+
Mutually exclusive parameter with AffinityGroupIDs.
111+
Can be "host affinity" or "host anti-affinity". Will create an affinity group per machine set.
103112
type: string
104113
type: object
105114
status:
@@ -124,14 +133,19 @@ spec:
124133
API
125134
properties:
126135
apiVersion:
127-
description: 'APIVersion defines the versioned schema of this representation
128-
of an object. Servers should convert recognized schemas to the latest
129-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
136+
description: |-
137+
APIVersion defines the versioned schema of this representation of an object.
138+
Servers should convert recognized schemas to the latest internal value, and
139+
may reject unrecognized values.
140+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
130141
type: string
131142
kind:
132-
description: 'Kind is a string value representing the REST resource this
133-
object represents. Servers may infer this from the endpoint the client
134-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
143+
description: |-
144+
Kind is a string value representing the REST resource this object represents.
145+
Servers may infer this from the endpoint the client submits requests to.
146+
Cannot be updated.
147+
In CamelCase.
148+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
135149
type: string
136150
metadata:
137151
type: object
@@ -150,9 +164,9 @@ spec:
150164
description: Name.
151165
type: string
152166
type:
153-
description: Mutually exclusive parameter with AffinityGroupIDs. Can
154-
be "host affinity" or "host anti-affinity". Will create an affinity
155-
group per machine set.
167+
description: |-
168+
Mutually exclusive parameter with AffinityGroupIDs.
169+
Can be "host affinity" or "host anti-affinity". Will create an affinity group per machine set.
156170
type: string
157171
type: object
158172
status:

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

Lines changed: 57 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.3
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.15.0
87
name: cloudstackclusters.infrastructure.cluster.x-k8s.io
98
spec:
109
group: infrastructure.cluster.x-k8s.io
@@ -21,14 +20,19 @@ spec:
2120
description: CloudStackCluster is the Schema for the cloudstackclusters API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3236
type: string
3337
metadata:
3438
type: object
@@ -56,12 +60,14 @@ spec:
5660
description: CloudStack domain.
5761
type: string
5862
identityRef:
59-
description: CloudStackIdentityReference is a reference to an infrastructure
63+
description: |-
64+
CloudStackIdentityReference is a reference to an infrastructure
6065
provider identity to be used to provision cluster resources.
6166
properties:
6267
kind:
63-
description: Kind of the identity. Must be supported by the infrastructure
64-
provider and may be either cluster or namespace-scoped.
68+
description: |-
69+
Kind of the identity. Must be supported by the infrastructure provider
70+
and may be either cluster or namespace-scoped.
6571
minLength: 1
6672
type: string
6773
name:
@@ -112,9 +118,9 @@ spec:
112118
type: string
113119
failureDomains:
114120
additionalProperties:
115-
description: FailureDomainSpec is the Schema for Cluster API failure
116-
domains. It allows controllers to understand how many failure
117-
domains a cluster can optionally span across.
121+
description: |-
122+
FailureDomainSpec is the Schema for Cluster API failure domains.
123+
It allows controllers to understand how many failure domains a cluster can optionally span across.
118124
properties:
119125
attributes:
120126
additionalProperties:
@@ -127,8 +133,9 @@ spec:
127133
is suitable for use by control plane machines.
128134
type: boolean
129135
type: object
130-
description: CAPI recognizes failure domains as a method to spread
131-
machines. CAPC sets failure domains to indicate functioning Zones.
136+
description: |-
137+
CAPI recognizes failure domains as a method to spread machines.
138+
CAPC sets failure domains to indicate functioning Zones.
132139
type: object
133140
loadBalancerRuleID:
134141
description: The ID of the lb rule used to assign VMs to the lb.
@@ -186,14 +193,19 @@ spec:
186193
description: CloudStackCluster is the Schema for the cloudstackclusters API
187194
properties:
188195
apiVersion:
189-
description: 'APIVersion defines the versioned schema of this representation
190-
of an object. Servers should convert recognized schemas to the latest
191-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
196+
description: |-
197+
APIVersion defines the versioned schema of this representation of an object.
198+
Servers should convert recognized schemas to the latest internal value, and
199+
may reject unrecognized values.
200+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
192201
type: string
193202
kind:
194-
description: 'Kind is a string value representing the REST resource this
195-
object represents. Servers may infer this from the endpoint the client
196-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
203+
description: |-
204+
Kind is a string value representing the REST resource this object represents.
205+
Servers may infer this from the endpoint the client submits requests to.
206+
Cannot be updated.
207+
In CamelCase.
208+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
197209
type: string
198210
metadata:
199211
type: object
@@ -286,9 +298,9 @@ spec:
286298
properties:
287299
failureDomains:
288300
additionalProperties:
289-
description: FailureDomainSpec is the Schema for Cluster API failure
290-
domains. It allows controllers to understand how many failure
291-
domains a cluster can optionally span across.
301+
description: |-
302+
FailureDomainSpec is the Schema for Cluster API failure domains.
303+
It allows controllers to understand how many failure domains a cluster can optionally span across.
292304
properties:
293305
attributes:
294306
additionalProperties:
@@ -301,8 +313,9 @@ spec:
301313
is suitable for use by control plane machines.
302314
type: boolean
303315
type: object
304-
description: CAPI recognizes failure domains as a method to spread
305-
machines. CAPC sets failure domains to indicate functioning CloudStackFailureDomains.
316+
description: |-
317+
CAPI recognizes failure domains as a method to spread machines.
318+
CAPC sets failure domains to indicate functioning CloudStackFailureDomains.
306319
type: object
307320
ready:
308321
description: Reflects the readiness of the CS cluster.
@@ -321,14 +334,19 @@ spec:
321334
description: CloudStackCluster is the Schema for the cloudstackclusters API
322335
properties:
323336
apiVersion:
324-
description: 'APIVersion defines the versioned schema of this representation
325-
of an object. Servers should convert recognized schemas to the latest
326-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
337+
description: |-
338+
APIVersion defines the versioned schema of this representation of an object.
339+
Servers should convert recognized schemas to the latest internal value, and
340+
may reject unrecognized values.
341+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
327342
type: string
328343
kind:
329-
description: 'Kind is a string value representing the REST resource this
330-
object represents. Servers may infer this from the endpoint the client
331-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
344+
description: |-
345+
Kind is a string value representing the REST resource this object represents.
346+
Servers may infer this from the endpoint the client submits requests to.
347+
Cannot be updated.
348+
In CamelCase.
349+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
332350
type: string
333351
metadata:
334352
type: object
@@ -424,9 +442,9 @@ spec:
424442
properties:
425443
failureDomains:
426444
additionalProperties:
427-
description: FailureDomainSpec is the Schema for Cluster API failure
428-
domains. It allows controllers to understand how many failure
429-
domains a cluster can optionally span across.
445+
description: |-
446+
FailureDomainSpec is the Schema for Cluster API failure domains.
447+
It allows controllers to understand how many failure domains a cluster can optionally span across.
430448
properties:
431449
attributes:
432450
additionalProperties:
@@ -439,8 +457,9 @@ spec:
439457
is suitable for use by control plane machines.
440458
type: boolean
441459
type: object
442-
description: CAPI recognizes failure domains as a method to spread
443-
machines. CAPC sets failure domains to indicate functioning CloudStackFailureDomains.
460+
description: |-
461+
CAPI recognizes failure domains as a method to spread machines.
462+
CAPC sets failure domains to indicate functioning CloudStackFailureDomains.
444463
type: object
445464
ready:
446465
description: Reflects the readiness of the CS cluster.

0 commit comments

Comments
 (0)