Commit 163dbaf
fix: imperative restart should rollout the primary pod (cloudnative-pg#7122)
This patch updates the operator to create a new Pod for the primary
instance when an imperative restart is requested.
Previously, if `primaryUpdateMethod` was set to `restart`, the operator
would recreate the replica Pods but only perform an in-place restart of
the primary Pod.
This approach could lead to inconsistencies between the definitions of
the primary and the replica Pods, as only the replicas were fully
recreated.
Closes cloudnative-pg#7120
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>1 parent c112c8e commit 163dbaf
File tree
2 files changed
+9
-13
lines changed- internal/controller
2 files changed
+9
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 547 | + | |
| 548 | + | |
553 | 549 | | |
554 | 550 | | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
558 | 554 | | |
559 | | - | |
| 555 | + | |
560 | 556 | | |
561 | 557 | | |
562 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments