Skip to content

Commit 0373c9b

Browse files
Merge pull request #1974 from hasbro17/fix-csv-status-time-comparison
Bug 1917537: Fix time comparison in CSV reconcile loop
2 parents f087558 + 8c8270a commit 0373c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/operators/olm/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ func (a *Operator) syncClusterServiceVersion(obj interface{}) (syncError error)
10971097
}
10981098

10991099
// status changed, update CSV
1100-
if !(outCSV.Status.LastUpdateTime == clusterServiceVersion.Status.LastUpdateTime &&
1100+
if !(outCSV.Status.LastUpdateTime.Equal(clusterServiceVersion.Status.LastUpdateTime) &&
11011101
outCSV.Status.Phase == clusterServiceVersion.Status.Phase &&
11021102
outCSV.Status.Reason == clusterServiceVersion.Status.Reason &&
11031103
outCSV.Status.Message == clusterServiceVersion.Status.Message) {

0 commit comments

Comments
 (0)