Commit ee043d0
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
- deploy/helm/commons-operator
- crds
- templates
- rust/operator-binary
- src
- restart_controller
- utils
- webhook
- tests
- templates/kuttl
- restarter-no-unneeded-restart
- restarter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | 18 | | |
9 | 19 | | |
| |||
0 commit comments