Conditional fetch of newer version

91 views
Skip to first unread message

mspre...@gmail.com

unread,
Mar 13, 2022, 6:15:37 PM3/13/22
to K8s API Machinery SIG
In regular web APIs, there is a way to conditionalize GET on the resource in question having been modified since some given value (such as a date or etag).  I do not see such a thing in the Kubernetes API style.  I see https://kubernetes.io/docs/reference/using-api/api-concepts/#semantics-for-get-and-list , which provides a way to make a GET conditional on "not older than".  What I am asking for is to make a GET conditional on "newer than".  Its absence is actually pretty surprising to regular web programmers.  I understand that WATCH is a thing, and I really like it.  But I do not think we should be saying that is the only way.  What do you think?  What if, for example, we allowed GET to take a `resourceVersionMatch` parameter with a value of `NewerThan`?

Thanks,
Mike

Reply all
Reply to author
Forward
0 new messages