From 79bbbeaf2ad784ae98740191da5a49fcb220dc17 Mon Sep 17 00:00:00 2001 From: Danny Thomson Date: Tue, 22 Oct 2019 06:50:44 -0700 Subject: [PATCH] Remove run from pauseReason name --- rollout/analysis.go | 2 +- rollout/analysis_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rollout/analysis.go b/rollout/analysis.go index ecac9fe769..164068eec3 100644 --- a/rollout/analysis.go +++ b/rollout/analysis.go @@ -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 diff --git a/rollout/analysis_test.go b/rollout/analysis_test.go index 051ce292d5..96a6a63740 100644 --- a/rollout/analysis_test.go +++ b/rollout/analysis_test.go @@ -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) {