Skip to content

Commit

Permalink
Fix bug in ResourceHandle age preference
Browse files Browse the repository at this point in the history
- Older handles should be preferred, recent change flipped the logic
  • Loading branch information
jkupferer committed Sep 4, 2024
1 parent f37d4e3 commit e835da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/resourcehandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __lt__(self, cmp):
return False

# Prefer older matches
return self.resource_handle.creation_timestamp < cmp.resource_handle.creation_timestamp
return self.resource_handle.creation_timestamp > cmp.resource_handle.creation_timestamp

class ResourceHandle(KopfObject):
api_group = Poolboy.operator_domain
Expand Down

0 comments on commit e835da5

Please sign in to comment.