File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
"k8s.io/apimachinery/pkg/api/errors"
14
14
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
15
15
"k8s.io/klog/v2"
16
+ "k8s.io/utils/clock"
16
17
)
17
18
18
19
// StatusReason is a MixedCaps string representing the reason for a
@@ -148,7 +149,7 @@ func newClusterOperatorStatusCondition(conditionType osconfigv1.ClusterStatusCon
148
149
// syncStatus applies the new condition to the mao ClusterOperator object.
149
150
func (optr * Operator ) syncStatus (co * osconfigv1.ClusterOperator , conds []osconfigv1.ClusterOperatorStatusCondition ) error {
150
151
for _ , c := range conds {
151
- v1helpers .SetStatusCondition (& co .Status .Conditions , c )
152
+ v1helpers .SetStatusCondition (& co .Status .Conditions , c , clock. RealClock {} )
152
153
}
153
154
if co .Annotations == nil {
154
155
co .Annotations = map [string ]string {}
@@ -273,7 +274,7 @@ func (optr *Operator) setMissingStatusConditions(co *osconfigv1.ClusterOperator)
273
274
274
275
for _ , c := range optr .defaultStatusConditions () {
275
276
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 {} )
277
278
modified = true
278
279
}
279
280
}
You can’t perform that action at this time.
0 commit comments