Commit 18e11fe
fix: align cert-manager versions, pre-import images, and auto-recreate stale k3d clusters
Root cause: CI agents persist k3d clusters across builds. When the
cert-manager version in the startup manifest changes, loadCluster
patches the HelmChart which triggers an in-place upgrade. This
disrupts the running webhook during transition, causing "cert-manager
webhook not ready" timeouts.
Fixes:
1. Align cert-manager to v1.17.2 (pre-pulled by CI) in both
pkg/k3d/cert-manager.yaml and pkg/testutil/testutil.go.
2. Pre-import cert-manager images into k3d containerd in waitForJobs()
so the helm controller doesn't need to pull from the internet.
3. Auto-recreate stale clusters: if loadCluster fails (e.g. webhook
never becomes ready after manifest upgrade), GetOrCreate deletes
the unhealthy cluster and creates a fresh one. This handles the
case where a CI agent has a k3d cluster from a previous build with
an incompatible cert-manager version.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 86d2595 commit 18e11fe
3 files changed
Lines changed: 52 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
207 | 223 | | |
208 | 224 | | |
209 | 225 | | |
| |||
215 | 231 | | |
216 | 232 | | |
217 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
218 | 243 | | |
219 | 244 | | |
220 | 245 | | |
| |||
509 | 534 | | |
510 | 535 | | |
511 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
512 | 548 | | |
513 | 549 | | |
514 | 550 | | |
| |||
554 | 590 | | |
555 | 591 | | |
556 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
557 | 606 | | |
558 | 607 | | |
559 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments