Skip to content

Commit

Permalink
Resuming a stopped CassDC should not use the ScalingUp condition (#198)
Browse files Browse the repository at this point in the history
* Resuming a stopped CassDC should not use the ScalingUp condition

* Add a comment
  • Loading branch information
jimdickinson authored Aug 17, 2020
1 parent 3a139c5 commit 7f26e0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions operator/pkg/reconciliation/reconcile_racks.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,14 @@ func (rc *ReconciliationContext) CheckRackScale() result.ReconcileResult {
updated = rc.setCondition(
api.NewDatacenterCondition(
api.DatacenterResuming, corev1.ConditionTrue)) || updated
} else {
// We weren't resuming from a stopped state, so we must be growing the
// size of the rack
updated = rc.setCondition(
api.NewDatacenterCondition(
api.DatacenterScalingUp, corev1.ConditionTrue)) || updated
}

updated = rc.setCondition(
api.NewDatacenterCondition(
api.DatacenterScalingUp, corev1.ConditionTrue)) || updated

if updated {
err := rc.Client.Status().Patch(rc.Ctx, dc, dcPatch)
if err != nil {
Expand Down

0 comments on commit 7f26e0f

Please sign in to comment.