Reputation: 408
I am using watchers to build up an internal representation of a list of custom resources. Now I want to validate that my wachter implementation is working and had the idea to use resource_versions to check for consistency.
The docs specify:
API clients may only compare two resource versions for equality
Therefore, I planned to send another list request and compare the resource version of the last received watch event with the current resource version in the list response.
Surprisingly, they are unequal (although there were no changes in the meantime) and I would like to understand why?
The same happens if I send multiple List requests, I always get different resource versions. How should I compare resource version for equality?
Upvotes: 0
Views: 41