Skip to content

Commit

Permalink
Adding a unit test to verify that partitioned rolling upgrade for a s…
Browse files Browse the repository at this point in the history
…tatefulset works.

Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>
  • Loading branch information
amannijhawan committed Feb 1, 2023
1 parent 0ba580f commit 4a2eab8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/kube/ready_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ func Test_ReadyChecker_statefulSetReady(t *testing.T) {
},
want: false,
},
{
name: "statefulset is ready when current revision for current replicas does not match update revision for updated replicas when using partition !=0",
args: args{
sts: newStatefulSetWithUpdateRevision("foo", 3, 2, 3, 3, "foo-bbbbbbb"),
},
want: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 4a2eab8

Please sign in to comment.