mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 14:42:05 +09:00
The hook ran a ServiceAccount, Role, RoleBinding and a kubectl Job on every upgrade of every single-replica instance, to delete the Sentinel PDB the operator left behind once disablePodDisruptionBudget was set. The operator now deletes a disabled PDB itself on reconcile, so the hook, its RBAC and the helper extracted for it have no work left. An instance that still carries the stale PDB loses it on the first reconcile by the updated operator. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
How to test packages local
cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd