Skip to content

Commit f8b5539

Browse files
committed
Updates made by library-go update
1 parent 32021d1 commit f8b5539

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/operator/status.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"k8s.io/apimachinery/pkg/api/errors"
1414
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1515
"k8s.io/klog/v2"
16+
"k8s.io/utils/clock"
1617
)
1718

1819
// StatusReason is a MixedCaps string representing the reason for a
@@ -148,7 +149,7 @@ func newClusterOperatorStatusCondition(conditionType osconfigv1.ClusterStatusCon
148149
// syncStatus applies the new condition to the mao ClusterOperator object.
149150
func (optr *Operator) syncStatus(co *osconfigv1.ClusterOperator, conds []osconfigv1.ClusterOperatorStatusCondition) error {
150151
for _, c := range conds {
151-
v1helpers.SetStatusCondition(&co.Status.Conditions, c)
152+
v1helpers.SetStatusCondition(&co.Status.Conditions, c, clock.RealClock{})
152153
}
153154
if co.Annotations == nil {
154155
co.Annotations = map[string]string{}
@@ -273,7 +274,7 @@ func (optr *Operator) setMissingStatusConditions(co *osconfigv1.ClusterOperator)
273274

274275
for _, c := range optr.defaultStatusConditions() {
275276
if v1helpers.FindStatusCondition(co.Status.Conditions, c.Type) == nil {
276-
v1helpers.SetStatusCondition(&co.Status.Conditions, c)
277+
v1helpers.SetStatusCondition(&co.Status.Conditions, c, clock.RealClock{})
277278
modified = true
278279
}
279280
}

0 commit comments

Comments
 (0)