Repository navigation
Add crd sync logic in plural cd clusters reinstall - #835
Conversation
This should help solve for the whole issue of helm not reinstalling the crd folder for god knows what reason
[Medium impact] The change reaches Kubernetes clusters where the CLI upgrades the deployment operator. The PR appears safe to merge, with a non-blocking request to test the new CRD write path. Findings
SummaryAdds CRD updates before upgrading an existing deployment operator release.
Reviews (1) · Last reviewed commit: "Add crd sync logic in plural cd clusters..." · Reviewed by Greptile |
|
|
||
| // syncCRDs server-side applies the chart's crds/ directory, which helm upgrade never touches. | ||
| // Client-side apply can't be used since some CRDs exceed the 256KB last-applied-configuration annotation limit. | ||
| func syncCRDs(config *action.Configuration, chart *chart.Chart) error { |
There was a problem hiding this comment.
syncCRDs adds forced writes to cluster-wide CRDs without tests. Add coverage for missing and existing CRDs, multiple documents in one file, and apply or wait errors stopping the upgrade. These checks would catch changes that silently skip CRDs or upgrade the operator before its CRDs are ready.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
This should help solve for the whole issue of helm not reinstalling the crd folder for god knows what reason
Summary
Labels
Test Plan
Checklist