Commit 6ae2210
fix(chart): ship the karpenter core CRDs so the controller can start (#44)
The chart only shipped HCloudNodeClass, so a clean install per the README
left the controller crash-looping on its own watches:
"if kind is a CRD, it should be installed before calling Start"
kind=NodeClaim.karpenter.sh error=no matches for kind "NodeClaim" in
version "karpenter.sh/v1"
controllers.NewControllers() watches NodePool and NodeClaim unconditionally,
so neither is optional. Vendor both from the pinned sigs.k8s.io/karpenter
v1.14.0; each serves v1, matching the version the controller requests.
Copy them in `make generate` rather than checking in a hand-copied snapshot,
so a sigs.k8s.io/karpenter bump that changes either schema fails the existing
`make generate-verify` gate in CI instead of silently shipping a stale CRD.
NodeOverlay and CapacityBuffer are deliberately not vendored: both sit behind
feature gates defaulting to false, and the chart does not expose them.
README: correct the claim that a single CRD ships, and document that Helm
never upgrades resources in crds/, with the server-side apply to run before
`helm upgrade`.
Fixes #43
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent af31b61 commit 6ae2210
4 files changed
Lines changed: 980 additions & 3 deletions
File tree
- charts/karpenter-provider-hetzner/crds
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
23 | 39 | | |
24 | 40 | | |
25 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
0 commit comments