mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 22:53:43 +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>