Skip to content

Commit

Permalink
Remove run from pauseReason name
Browse files Browse the repository at this point in the history
  • Loading branch information
dthomson25 committed Oct 22, 2019
1 parent 05b0b2b commit 79bbbea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollout/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *RolloutController) reconcileStepBasedAnalysisRun(roCtx *canaryContext)
}

if currentAr.Status != nil && currentAr.Status.Status == v1alpha1.AnalysisStatusInconclusive {
roCtx.PauseContext().AddPauseCondition(v1alpha1.PauseReasonInconclusiveAnalysisRun)
roCtx.PauseContext().AddPauseCondition(v1alpha1.PauseReasonInconclusiveAnalysis)
}

return currentAr, nil
Expand Down
2 changes: 1 addition & 1 deletion rollout/analysis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func TestPausedStepAfterInconclusiveAnalysisRun(t *testing.T) {
}`
condition := generateConditionsPatch(true, conditions.ReplicaSetUpdatedReason, r2, false)

assert.Equal(t, calculatePatch(r2, fmt.Sprintf(expectedPatch, condition, v1alpha1.PauseReasonInconclusiveAnalysisRun, now)), patch)
assert.Equal(t, calculatePatch(r2, fmt.Sprintf(expectedPatch, condition, v1alpha1.PauseReasonInconclusiveAnalysis, now)), patch)
}

func TestErrorConditionAfterErrorAnalysisRun(t *testing.T) {
Expand Down

0 comments on commit 79bbbea

Please sign in to comment.