forked from cloudnative-pg/cloudnative-pg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly compare zero and nil `.spec.projectedVolumeTemplate.so…
…urces` (cloudnative-pg#3647) This patch prevents the rollout of the pod in case the current and expected `.spec.projectedVolumeTemplate.sources` use different semantics to describe a volume source not being present. Previously, we required a strict equivalence between the current and expected values of `.spec.projectedVolumeTemplate.sources`, which resulted in the operator initiating rollouts even when comparing zero and nil values. Closes: cloudnative-pg#3623 Signed-off-by: YanniHu1996 <[email protected]> Signed-off-by: Tao Li <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Tao Li <[email protected]> Co-authored-by: Armando Ruocco <[email protected]>
- Loading branch information
1 parent
34f01d4
commit e304898
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters