cozystack/internal/crdinstall
Aleksei Sviridkin cecc5861af
fix(operator): validate CRD apiVersion, respect SIGTERM during install
- Check both apiVersion and kind when validating embedded CRD manifests
  to prevent applying objects with wrong API group
- Move ctrl.SetupSignalHandler() before install phases so CRD and Flux
  installs respect SIGTERM instead of blocking for up to 2 minutes
- Replace custom contains/searchString helpers with strings.Contains

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-02-18 00:49:56 +03:00
..
manifests feat(operator): add --install-crds flag with embedded CRD manifests 2026-02-18 00:49:55 +03:00
install.go fix(operator): validate CRD apiVersion, respect SIGTERM during install 2026-02-18 00:49:56 +03:00
install_test.go fix(crdinstall): reject non-CRD objects in embedded manifests 2026-02-18 00:49:56 +03:00
manifests.embed.go fix(crdinstall): use filepath for OS paths, restrict permissions, add tests 2026-02-18 00:49:56 +03:00