Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed Aug 23, 2022
1 parent 26e3933 commit 81e7aac
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions rollout/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,17 +369,6 @@ func generateConditionsPatchWithHealthy(available bool, progressingReason string
return fmt.Sprintf("[%s, %s, %s, %s]", completedCondition, healthyCondition, progressingCondition, availableCondition)
}

func generateConditionsPatchWithHealthyAndCompleted(available bool, progressingReason string, progressingResource runtime.Object, availableConditionFirst bool, progressingMessage string, isHealthy bool) string {
_, availableCondition := newAvailableCondition(available)
_, progressingCondition := newProgressingCondition(progressingReason, progressingResource, progressingMessage)
_, healthyCondition := newHealthyCondition(isHealthy)
_, completeCondition := newCompletedCondition(true)
if availableConditionFirst {
return fmt.Sprintf("[%s, %s, %s, %s]", availableCondition, completeCondition, healthyCondition, progressingCondition)
}
return fmt.Sprintf("[%s, %s, %s, %s]", progressingCondition, availableCondition, healthyCondition, completeCondition)
}

func generateConditionsPatchWithCompleted(available bool, progressingReason string, progressingResource runtime.Object, availableConditionFirst bool, progressingMessage string, isCompleted bool) string {
_, availableCondition := newAvailableCondition(available)
_, progressingCondition := newProgressingCondition(progressingReason, progressingResource, progressingMessage)
Expand Down

0 comments on commit 81e7aac

Please sign in to comment.