We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0504dff commit 7e7eb1aCopy full SHA for 7e7eb1a
1 file changed
utils/caocontrol/controller.go
@@ -874,8 +874,19 @@ func (c *Controller) waitCouchbaseClusterAvailable(
874
}
875
876
// mark it unavailable if we are in the middle of scaling
877
+ blockingScaleCondTypes := []string{
878
+ "Scaling",
879
+ "ScalingUp",
880
+ "ScalingDown",
881
+ "Upgrading",
882
+ "Hibernating",
883
+ "Error",
884
+ "Migrating",
885
+ "Rebalancing",
886
+ "BucketMigrating",
887
+ }
888
for _, cond := range status.Conditions {
- if cond.Type == "Scaling" && cond.Status == "True" {
889
+ if slices.Contains(blockingScaleCondTypes, string(cond.Type)) && cond.Status == "True" {
890
clusterAvailable = false
891
892
0 commit comments