File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
internal/mode/static/sort Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ func LessObjectMeta(meta1 *metav1.ObjectMeta, meta2 *metav1.ObjectMeta) bool {
18
18
return meta1 .CreationTimestamp .Before (& meta2 .CreationTimestamp )
19
19
}
20
20
21
- // ClientObject compares two client.Objects and returns true if the first object was created first.
22
- // If the objects were created at the same time,
23
- // it returns true if the first object's name appears first in alphabetical order.
21
+ // ClientObject compares two client.Objects and returns true if:
22
+ // - the first object was created first,
23
+ // - the objects were created at the same time, or
24
+ // - the first object's name appears first in alphabetical order.
24
25
func ClientObject (obj1 client.Object , obj2 client.Object ) bool {
25
26
create1 := obj1 .GetCreationTimestamp ()
26
27
create2 := obj2 .GetCreationTimestamp ()
You can’t perform that action at this time.
0 commit comments