Commit 939c739
authored
🤖 fix: stop generating aggregation CRDs in manifests (#68)
## Summary
Stop generating `aggregation.coder.com` CRDs into `config/crd/bases`,
delete the previously generated aggregation CRD manifests, and keep demo
flows fail-fast when stale APIService/CRD conflicts exist.
## Background
For APIService-backed aggregated resources (`codertemplates`,
`coderworkspaces`), same-group CRDs in `config/crd/bases` caused
unreliable read/discovery behavior in demos when both mechanisms were
present. We want `kubectl apply -f config/crd/bases/` to remain simple
and safe.
## Implementation
- Updated `hack/update-manifests.sh`:
- CRD generation now runs only against `./api/v1alpha1` (operator-owned
`coder.com/*` APIs)
- RBAC generation remains repo-wide (`./...`)
- Removed generated aggregation CRDs:
- `config/crd/bases/aggregation.coder.com_codertemplates.yaml`
- `config/crd/bases/aggregation.coder.com_coderworkspaces.yaml`
- Kept a defensive guard in `hack/kind-dev.sh`:
- Detects `APIService v1alpha1.aggregation.coder.com` + aggregation CRD
coexistence
- Fails with explicit cleanup command
- Simplified docs back to approachable CRD command usage (`kubectl apply
-f config/crd/bases/`) while keeping a focused troubleshooting note for
stale conflict cleanup.
## Validation
- `make verify-vendor`
- `make test`
- `make build`
- `make lint`
- `make docs-check`
- `make manifests`
- `bash -n ./hack/kind-dev.sh`
- `CLUSTER_NAME=coder-k8s-smoke-20260212 ./hack/kind-dev.sh up`
## Risks
Low-to-moderate:
- Behavior of generated CRDs intentionally narrows to controller-owned
APIs only.
- Any external workflow that relied on generated aggregation CRD files
in `config/crd/bases` will need to use the APIService path instead
(which is the intended model).
---
_Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking:
`xhigh` • Cost: `$0.00`_
<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh
costs=0.00 -->1 parent 450fb4e commit 939c739
5 files changed
Lines changed: 56 additions & 183 deletions
File tree
- config/crd/bases
- docs/how-to
- hack
Lines changed: 0 additions & 90 deletions
This file was deleted.
Lines changed: 0 additions & 92 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
43 | 67 | | |
44 | 68 | | |
45 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
79 | 102 | | |
80 | 103 | | |
81 | 104 | | |
| |||
115 | 138 | | |
116 | 139 | | |
117 | 140 | | |
| 141 | + | |
118 | 142 | | |
119 | 143 | | |
| 144 | + | |
120 | 145 | | |
121 | 146 | | |
122 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | | - | |
22 | 28 | | |
0 commit comments