Commit 06a0da3
authored
🤖 fix: add CoderTemplate.spec.files to aggregated OpenAPI (#81)
## Summary
Expose `CoderTemplate.spec.files` in the aggregated API server OpenAPI
schema so server-side apply (SSA) can manage template source updates.
## Background
SSA relies on the server’s OpenAPI schema/type info. The aggregated API
server’s manually-built OpenAPI definition for `CoderTemplate` omitted
`spec.files`, which prevents apply from properly managing that field.
## Implementation
- Added `spec.files` to the `CoderTemplate` OpenAPI schema as a typed
map (`type: object` + `additionalProperties: { type: string }`).
- Marked the map as `x-kubernetes-map-type: atomic` to avoid per-file
ownership churn in managedFields.
- Added a unit test to assert `spec.files` is present and correctly
typed in OpenAPI.
## Validation
- `make test`
- `make build`
- `make verify-vendor`
- `make lint`
## Risks
Low. This only changes the OpenAPI schema served by the aggregated API
server and adds coverage.
---
_Generated with `mux` • Model: `openai:gpt-5.2` • Thinking: `xhigh` •
Cost: `$4.71`_
<!-- mux-attribution: model=openai:gpt-5.2 thinking=xhigh costs=4.71 -->1 parent ccfe0eb commit 06a0da3
2 files changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
352 | 366 | | |
353 | 367 | | |
354 | 368 | | |
| |||
399 | 413 | | |
400 | 414 | | |
401 | 415 | | |
| 416 | + | |
402 | 417 | | |
403 | 418 | | |
404 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 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 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
42 | 79 | | |
43 | 80 | | |
44 | 81 | | |
| |||
0 commit comments