Make metav1.(Micro)?Time functions take pointers

This commit is contained in:
gmarek
2017-08-04 17:04:14 +02:00
parent 402e48b072
commit 0504cfbc25
23 changed files with 64 additions and 59 deletions

View File

@@ -193,8 +193,8 @@ func (o byCreationTimestamp) Len() int { return len(o) }
func (o byCreationTimestamp) Swap(i, j int) { o[i], o[j] = o[j], o[i] }
func (o byCreationTimestamp) Less(i, j int) bool {
if o[i].CreationTimestamp.Equal(o[j].CreationTimestamp) {
if o[i].CreationTimestamp.Equal(&o[j].CreationTimestamp) {
return o[i].Name < o[j].Name
}
return o[i].CreationTimestamp.Before(o[j].CreationTimestamp)
return o[i].CreationTimestamp.Before(&o[j].CreationTimestamp)
}