Commit 511b65d
committed
Upgrade operator-sdk from v1.31.0 to v1.41.1
This upgrades the operator-sdk to version 1.41.1, which includes migrating
to the Kubebuilder v4 layout and modernizing the project structure.
Key changes:
- Re-scaffold the project with operator-sdk 1.41.1
- Update both main.go to support the latest kubebuilder features. This
includes using WithAuthenticationAndAuthorization to guard metrics
endpoints. This drops use of kube-rbac-proxy for openstack-operator.
- Migrated from Kubebuilder v3 to v4 layout (PROJECT file updated)
- Renamed apis/ directory to api/ following Kubebuilder v4 conventions
- Updated all import paths throughout the codebase to use api/ instead of apis/
- Moved main.go to cmd/main.go per new project structure
- Partially updated webhook implementations to use new validation/defaulting patterns. More
work can be done to consolidate the webhook code in the internal/webhook directory in the future.
- Added missing webhook configurations for OpenStackClient, OpenStackDataPlaneService, and
OpenStackDataPlaneDeployment to PROJECT
- Upgraded kustomize from v5.5.0 to v5.6.0
- Updated controller-gen paths to reflect new directory structure
- Updated all Makefile targets and test paths
Co-Authored-By: Claude <[email protected]>
Jira: OSPRH-214381 parent 5cc8994 commit 511b65d
File tree
402 files changed
+4645
-1417
lines changed- .github/workflows
- apis
- bases
- client
- api
- bases
- client/v1beta1
- core/v1beta1
- dataplane/v1beta1
- operator/v1beta1
- bindata
- operator
- rbac
- cmd
- operator
- config
- certmanager
- crd
- bases
- patches
- default
- manager
- manifests
- bases
- network-policy
- operator
- deployment
- manifests/bases
- rbac
- prometheus
- rbac
- scorecard
- patches
- webhook
- containers/ci
- docs
- hack
- internal
- controller
- client
- core
- dataplane
- operator
- dataplane
- util
- openstackclient
- openstack
- operator
- bindata
- webhook
- client/v1beta1
- core/v1beta1
- dataplane/v1beta1
- test
- functional
- ctlplane
- dataplane
- kuttl
- common
- tests
- ctlplane-basic-deployment-with-nicMappings
- ctlplane-basic-deployment
- ctlplane-collapsed
- ctlplane-galera-3replicas
- ctlplane-galera-basic
- ctlplane-nodeselectors
- ctlplane-tls-cert-rotation
- ctlplane-tls-custom-issuers
- ctlplane-tls-custom-route
- dataplane-create-test
- dataplane-deploy-global-service-test
- dataplane-deploy-multiple-secrets
- dataplane-deploy-no-nodes-test
- dataplane-deploy-tls-test
- dataplane-extramounts
- dataplane-multinode-nodeset-create-test
- dataplane-service-config
- dataplane-service-custom-image
- dataplane-service-failure
- zuul.d
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
402 files changed
+4645
-1417
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
| 182 | + | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
273 | 279 | | |
274 | 280 | | |
275 | 281 | | |
| |||
306 | 312 | | |
307 | 313 | | |
308 | 314 | | |
309 | | - | |
| 315 | + | |
310 | 316 | | |
311 | 317 | | |
312 | 318 | | |
313 | 319 | | |
314 | | - | |
| 320 | + | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
| |||
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
383 | | - | |
384 | | - | |
| 389 | + | |
| 390 | + | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
| |||
468 | 474 | | |
469 | 475 | | |
470 | 476 | | |
471 | | - | |
| 477 | + | |
472 | 478 | | |
473 | 479 | | |
474 | 480 | | |
475 | 481 | | |
476 | | - | |
| 482 | + | |
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
482 | 488 | | |
483 | 489 | | |
484 | | - | |
| 490 | + | |
485 | 491 | | |
486 | 492 | | |
487 | 493 | | |
488 | 494 | | |
489 | | - | |
| 495 | + | |
490 | 496 | | |
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
495 | | - | |
| 501 | + | |
496 | 502 | | |
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
501 | | - | |
| 507 | + | |
502 | 508 | | |
503 | 509 | | |
504 | 510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
43 | | - | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | | - | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
| 74 | + | |
70 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
77 | 86 | | |
78 | | - | |
| 87 | + | |
79 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
80 | 93 | | |
81 | 94 | | |
82 | 95 | | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
86 | 99 | | |
87 | | - | |
| 100 | + | |
88 | 101 | | |
89 | 102 | | |
0 commit comments