Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed May 3, 2024
1 parent 621572e commit bb4f597
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/conditions/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func GetLastTransitionTime(from Getter, t clusterv1.ConditionType) *metav1.Time

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

Expand Down
1 change: 0 additions & 1 deletion util/conditions/getter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ func TestSummary(t *testing.T) {
baz := FalseCondition("baz", "reason falseInfo2", clusterv1.ConditionSeverityInfo, "message falseInfo2")
negativeFoo := PositiveFalseCondition("negative-foo")
negativeBar := NegativeTrueCondition("negative-bar", "reason negative-falseInfo1", clusterv1.ConditionSeverityInfo, "message negative-falseInfo1")
// negativeBaz := NegativeTrueCondition("negative-baz", "reason negative-falseInfo2", clusterv1.ConditionSeverityInfo, "message negative-falseInfo2")
existingReady := FalseCondition(clusterv1.ReadyCondition, "reason falseError1", clusterv1.ConditionSeverityError, "message falseError1") // NB. existing ready has higher priority than other conditions

tests := []struct {
Expand Down
3 changes: 3 additions & 0 deletions util/conditions/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ import (
type conditionPolarity string

const (
// PositivePolarity describe a condition with positive polarity (Status=True good).
PositivePolarity conditionPolarity = "Positive"

// NegativePolarity describe a condition with negative polarity (Status=False good).
NegativePolarity conditionPolarity = "Negative"
)

Expand Down

0 comments on commit bb4f597

Please sign in to comment.