-
deploy/kubernetes: embed CRDs instead of duplicating them (#4845)
发布于
2026-07-12 15:53:53 +00:00 | 63 次提交 在此版本后已推送到 masterThe CRD manifests were kept in two places — real YAML under config/crd/
(for kubectl apply) and byte-identical const strings in manifests.go
(for the Go CRDManifests map) — which will silently drift.Make config/crd/*.yaml the single source of truth and go:embed it;
CRDManifests now reads the embedded bytes. Drops ~120 lines of
duplicated YAML, no behavior change (still stdlib-only, tests unchanged).Claude-Session: https://claude.ai/code/session_01CmdEY7pYmV5zzwCjNJ4ykL
Co-authored-by: Claude noreply@anthropic.com
下载附件