Commit 992f98f
fix: resolve kustomize 5.4.3 panic on ambient-ui delete patch (#1631)
## Summary
- The `ambient-ui-delete-patch.yaml` uses `$patch: delete` at the YAML
document root, which causes a nil pointer dereference (`RNode.Content()
→ GetApiVersion()`) in kustomize **5.4.3** (pinned in
`prod-release-deploy.yaml`)
- This panics the `Validate kustomization` step in the
`deploy-to-openshift` job:
https://github.com/ambient-code/platform/actions/runs/26817820753/job/79067010287
- Works on kustomize 5.8.0 but not 5.4.3 — the root-level `$patch:
delete` in a multi-document file without explicit target selectors
triggers the bug
- Replace external patch file with inline `patch:` entries using
explicit `target:` selectors, which kustomize resolves correctly across
versions
- Verified: `kustomize build` succeeds and ambient-ui resources are
excluded from output
## Test plan
- [ ] `kustomize build overlays/production` succeeds (no panic)
- [ ] ambient-ui Deployment/ServiceAccount/Service are absent from built
output
- [ ] deploy-to-openshift CI job passes
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Removed the ambient-ui component from the production environment
configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: user <u@example.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>1 parent 4456c63 commit 992f98f
2 files changed
Lines changed: 31 additions & 18 deletions
Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
60 | 90 | | |
61 | 91 | | |
62 | 92 | | |
| |||
0 commit comments