Skip to content

Commit ee043d0

Browse files
sbernauernightkrdervoeti
authored
fix: Prevent Pod 0 restart by utilizing mutating webhook (#387)
* fix: Prevent Pod 0 restart by utilizing mutating webhook * Actually enrich StatefulSets in mutating webhooks Many parts copied from https://github.com/stackabletech/commons-operator/tree/spike/sts-restarter-webhook Co-authored-by: Natalie Klestrup Röijezon <nat@nullable.se> * Add CLI flag to disable mutating webhook * Rename function * clippy lints * cargo fmt * Make YAML nicer * Pull in new op-rs version * Update op-rs * Update op-rs * Fix Nix * Update to op-rs 0.101.1 * regenerate nix and charts * changelog * Add kuttl test * Improve changelog * changelog * Stupid YAML linter * Update rust/operator-binary/src/webhook/restarter_mutate_sts.rs Co-authored-by: Lukas Krug <lukas.krug@stackable.tech> --------- Co-authored-by: Natalie Klestrup Röijezon <nat@nullable.se> Co-authored-by: Lukas Krug <lukas.krug@stackable.tech>
1 parent e35ca4c commit ee043d0

22 files changed

Lines changed: 3763 additions & 859 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Fixed
8+
9+
- BREAKING: Prevent Pod 0 restart by utilizing a mutating webhook.
10+
The commons-operator now needs the RBAC permission to `create` and `patch`
11+
`mutatingwebhookconfigurations`. The webhook can be disabled using
12+
`--disable-restarter-mutating-webhook` or by setting the `DISABLE_RESTARTER_MUTATING_WEBHOOK`
13+
env variable ([#387]).
14+
15+
[#387]: https://github.com/stackabletech/commons-operator/pull/387
16+
717
## [25.11.0] - 2025-11-07
818

919
## [25.11.0-rc1] - 2025-11-06

0 commit comments

Comments
 (0)