Rolling update for multiple dependent resources of the same type #1680
-
Hi, We have a reconciler which marks two different StatefulSets as dependent resources. The reconciler logic which we are looking for is that the first StatefulSet must be reconciled and its replica becomes ready before the second StatefulSets is reconciled. We managed to achieve that for the create operation by defining a workflow and add the dependent resources of the StatefulSets to it, and add a ready postcondition for the dependent resource of the first StatefulSet which checks the number of ready replicas. Unfortunately, this did not work for the update scenario. The first StatefulSet was reconciled and updated first (the StatefulSet will be recreated) as wanted, but the ready postcondition returned true when it was supposed to return false since there should be no ready replica yet, and that triggered the reconciliation of the second StatefulSets immediately. It seems the status of the first StatefulSet was not updated yet when the condition was triggered. We tried to use the value current replicas of the first StatefulSet instead of ready replicas, but that didn't help also. Do you have a solution for this issue, and are we going into the right direction or there is a better way to achieve the logic we're looking for? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @moayad-alyaghshi , this is quite interesting, if you could provide a mininalistic implementation / sample, where it could be reproduced that would be a great help, and I could take a look check what is wrong. What you describe should not be a problem in theory. |
Beta Was this translation helpful? Give feedback.
Hi @moayad-alyaghshi , this is quite interesting, if you could provide a mininalistic implementation / sample, where it could be reproduced that would be a great help, and I could take a look check what is wrong.
What you describe should not be a problem in theory.