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 {
1818 return meta1 .CreationTimestamp .Before (& meta2 .CreationTimestamp )
1919}
2020
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.
2425func ClientObject (obj1 client.Object , obj2 client.Object ) bool {
2526 create1 := obj1 .GetCreationTimestamp ()
2627 create2 := obj2 .GetCreationTimestamp ()
You can’t perform that action at this time.
0 commit comments