[etcd] Add protective limits to defrag CronJob by sircthulhu · Pull Request #2233 · cozystack/cozystack

@sircthulhu

Without concurrencyPolicy and job limits, the defrag CronJob can
accumulate hundreds of running/failed pods during cluster upgrades
when etcd is temporarily unavailable. This was observed after
upgrading to v1.1.2 where defrag jobs piled up across tenants.

Assisted-By: Claude AI
Signed-off-by: Kirill Ilin <stitch14@yandex.ru>

@dosubot dosubot bot added the size:XS

This PR changes 0-9 lines, ignoring generated files.

label

Mar 17, 2026

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Mar 17, 2026

@kvaps kvaps deleted the fix/etcd-defrag-cronjob-limits branch

March 17, 2026 16:36

This was referenced

Mar 17, 2026

kvaps added a commit that referenced this pull request

Mar 17, 2026
…#2235)

# Description
Backport of #2233 to `release-1.0`.

kvaps added a commit that referenced this pull request

Mar 17, 2026
…#2234)

# Description
Backport of #2233 to `release-1.1`.