Commit 786f5cf
authored
Update Hyper-V mutating webhook to controller-runtime v0.19 (#546)
* Update Hyper-V mutating webhook to controller-runtime v0.19
- Migrate webhook from raw kubebuilder to controller-runtime v0.19 API
- Update Go to 1.24, k8s deps to v0.31.0
- Fix RuntimeClassName nil check and decoder type in webhook.go
- Replace standalone deployment.yaml with Helm chart support
- Make Helm deployment.yaml args and certMountPath configurable
- Add values-hyperv.yaml for controller-runtime webhook overrides
- Use existing webhook image (sigwindowstools/hyperv-runtimeclass-mutating-webhook)
* Fix Hyper-V E2E: pin containerd to v2.1.6 and fix webhook scheduling
- Pin containerd to v2.1.6 when HYPERV=true to avoid SandboxPlatform
validation bug in containerd >= 2.2.1 (hcsshim >= v0.14.0-rc.1)
- Move apply_hyperv_configuration after apply_hpc_webhook to avoid
cert-manager conflict
- Deploy hyperv webhook via Helm chart instead of standalone manifests
- Fix webhook pod scheduling: untaint/retaint control-plane nodes
* Exclude Helm templates from yamllint
Helm template files use Go template syntax ({{ }}, {{- }}) which is not
valid YAML. yamllint cannot parse these and reports false syntax errors.
The helm-chart-validation workflow already validates charts with helm lint.1 parent 0b964c0 commit 786f5cf
File tree
11 files changed
+270
-1059
lines changed- capz
- helpers
- helm
- templates
- hyper-v-mutating-webhook
11 files changed
+270
-1059
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
| |||
66 | 84 | | |
67 | 85 | | |
68 | 86 | | |
69 | | - | |
70 | | - | |
71 | 87 | | |
72 | 88 | | |
73 | 89 | | |
| |||
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
| 96 | + | |
80 | 97 | | |
81 | 98 | | |
82 | 99 | | |
| |||
476 | 493 | | |
477 | 494 | | |
478 | 495 | | |
479 | | - | |
480 | 496 | | |
481 | 497 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
| 498 | + | |
486 | 499 | | |
487 | 500 | | |
488 | 501 | | |
489 | 502 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
505 | 507 | | |
506 | | - | |
507 | | - | |
| 508 | + | |
| 509 | + | |
508 | 510 | | |
509 | 511 | | |
510 | 512 | | |
511 | 513 | | |
512 | 514 | | |
513 | | - | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
17 | 48 | | |
| 49 | + | |
18 | 50 | | |
19 | 51 | | |
20 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| |||
0 commit comments