Skip to content

Commit bb4f597

Browse files
Fix CI
1 parent 621572e commit bb4f597

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

util/conditions/getter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func GetLastTransitionTime(from Getter, t clusterv1.ConditionType) *metav1.Time
117117

118118
// summary returns a Ready condition with the summary of all the conditions existing
119119
// on an object. If the object does not have other conditions, no summary condition is generated.
120-
// NOTE: The resulting Ready condition will have positive polarity; the we are starting from might have positive or negative polarity.
120+
// NOTE: The resulting Ready condition will have positive polarity; the conditions we are starting from might have positive or negative polarity.
121121
func summary(from Getter, options ...MergeOption) *clusterv1.Condition {
122122
conditions := from.GetConditions()
123123

util/conditions/getter_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ func TestSummary(t *testing.T) {
155155
baz := FalseCondition("baz", "reason falseInfo2", clusterv1.ConditionSeverityInfo, "message falseInfo2")
156156
negativeFoo := PositiveFalseCondition("negative-foo")
157157
negativeBar := NegativeTrueCondition("negative-bar", "reason negative-falseInfo1", clusterv1.ConditionSeverityInfo, "message negative-falseInfo1")
158-
// negativeBaz := NegativeTrueCondition("negative-baz", "reason negative-falseInfo2", clusterv1.ConditionSeverityInfo, "message negative-falseInfo2")
159158
existingReady := FalseCondition(clusterv1.ReadyCondition, "reason falseError1", clusterv1.ConditionSeverityError, "message falseError1") // NB. existing ready has higher priority than other conditions
160159

161160
tests := []struct {

util/conditions/merge.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ import (
2727
type conditionPolarity string
2828

2929
const (
30+
// PositivePolarity describe a condition with positive polarity (Status=True good).
3031
PositivePolarity conditionPolarity = "Positive"
32+
33+
// NegativePolarity describe a condition with negative polarity (Status=False good).
3134
NegativePolarity conditionPolarity = "Negative"
3235
)
3336

0 commit comments

Comments
 (0)