Skip to content

Commit 9cb71e3

Browse files
committed
Upgrade CAPI to 1.9
1 parent 9f2d700 commit 9cb71e3

37 files changed

+1055
-1109
lines changed

Makefile

+7-7
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.21
133-
cd $(TOOLS_DIR); go mod tidy -compat=1.21
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
@@ -161,13 +161,13 @@ config/.flag.mk: $(CONTROLLER_GEN) $(MANIFEST_GEN_INPUTS)
161161
.PHONY: generate-conversion
162162
generate-conversion: $(CONVERSION_GEN) ## Generate code to convert api/v1beta1 and api/v1beta2 to api/v1beta3
163163
$(CONVERSION_GEN) \
164-
--input-dirs=./api/v1beta1 \
165164
--go-header-file=./hack/boilerplate.go.txt \
166-
--output-base=. --output-file-base=zz_generated.conversion
165+
--output-file=zz_generated.conversion.go \
166+
./api/v1beta1
167167
$(CONVERSION_GEN) \
168-
--input-dirs=./api/v1beta2 \
169168
--go-header-file=./hack/boilerplate.go.txt \
170-
--output-base=. --output-file-base=zz_generated.conversion
169+
--output-file=zz_generated.conversion.go \
170+
./api/v1beta2
171171

172172
##@ Build
173173
## --------------------------------------
@@ -244,7 +244,7 @@ delete-kind-cluster:
244244
kind delete cluster --name $(KIND_CLUSTER_NAME)
245245

246246
cluster-api: ## Clone cluster-api repository for tilt use.
247-
git clone --branch v1.8.11 --depth 1 https://github.com/kubernetes-sigs/cluster-api.git
247+
git clone --branch v1.9.6 --depth 1 https://github.com/kubernetes-sigs/cluster-api.git
248248

249249
cluster-api/tilt-settings.json: hack/tilt-settings.json cluster-api
250250
cp ./hack/tilt-settings.json cluster-api

api/v1beta1/zz_generated.deepcopy.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta2/zz_generated.deepcopy.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta3/zz_generated.deepcopy.go

-1
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

+43-28
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.12.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: cloudstackaffinitygroups.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -21,14 +21,19 @@ spec:
2121
API
2222
properties:
2323
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'
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
2729
type: string
2830
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'
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
3237
type: string
3338
metadata:
3439
type: object
@@ -43,9 +48,9 @@ spec:
4348
description: Name.
4449
type: string
4550
type:
46-
description: Mutually exclusive parameter with AffinityGroupIDs. Can
47-
be "host affinity" or "host anti-affinity". Will create an affinity
48-
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.
4954
type: string
5055
type: object
5156
status:
@@ -70,14 +75,19 @@ spec:
7075
API
7176
properties:
7277
apiVersion:
73-
description: 'APIVersion defines the versioned schema of this representation
74-
of an object. Servers should convert recognized schemas to the latest
75-
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
7683
type: string
7784
kind:
78-
description: 'Kind is a string value representing the REST resource this
79-
object represents. Servers may infer this from the endpoint the client
80-
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
8191
type: string
8292
metadata:
8393
type: object
@@ -96,9 +106,9 @@ spec:
96106
description: Name.
97107
type: string
98108
type:
99-
description: Mutually exclusive parameter with AffinityGroupIDs. Can
100-
be "host affinity" or "host anti-affinity". Will create an affinity
101-
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.
102112
type: string
103113
type: object
104114
status:
@@ -123,14 +133,19 @@ spec:
123133
API
124134
properties:
125135
apiVersion:
126-
description: 'APIVersion defines the versioned schema of this representation
127-
of an object. Servers should convert recognized schemas to the latest
128-
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
129141
type: string
130142
kind:
131-
description: 'Kind is a string value representing the REST resource this
132-
object represents. Servers may infer this from the endpoint the client
133-
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
134149
type: string
135150
metadata:
136151
type: object
@@ -149,9 +164,9 @@ spec:
149164
description: Name.
150165
type: string
151166
type:
152-
description: Mutually exclusive parameter with AffinityGroupIDs. Can
153-
be "host affinity" or "host anti-affinity". Will create an affinity
154-
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.
155170
type: string
156171
type: object
157172
status:

0 commit comments

Comments
 (0)