-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
VersionMatch
follow upstream + configure list semantics in `wa…
…tcher::Config` (#1171) * Make `VersionMatch` follow upstream + decouple enum from `watcher` Effectively makes the `VersionMatch` an exact duplicate of the upstream, and adds some builders here and there to compensate for the missing `Any`. Have changed the watcher interface and made a new enum that maps onto `VersionMatch` instead, because it does not make sense to run a watcher against a pinned resource version; it will always use 0. (at least unless/until we build pagination into it). We could keep the enum that wraps resource version, but this is awkward; it would be the only one that bundles resourceVersion that way; - watch api calls get it as a str (outside watchparams) - get api calls (in a follow-up pr) will also not use the enum so altogether we are just making it awkward for ourselves by trying to make it nice :( Signed-off-by: clux <[email protected]> * better enum variant names in kube-runtime + less aggressive docs Signed-off-by: clux <[email protected]> * rename enum variant, clean up tests and helper methods Signed-off-by: clux <[email protected]> * use verbs to be more consistent Signed-off-by: clux <[email protected]> * Apply suggestions from code review Co-authored-by: Natalie <[email protected]> Signed-off-by: Eirik A <[email protected]> * use match rather than if/else on enum Signed-off-by: clux <[email protected]> * fix tests Signed-off-by: clux <[email protected]> * remove unset variant, replace with Option Signed-off-by: clux <[email protected]> * fix deny Signed-off-by: clux <[email protected]> * also fix kube-runtime tests Signed-off-by: clux <[email protected]> * ws Signed-off-by: clux <[email protected]> * use kubernetes terminology for enum and avoid changing default behaviour Signed-off-by: clux <[email protected]> * leftover any Signed-off-by: clux <[email protected]> * put caveats on MostRecent Signed-off-by: clux <[email protected]> --------- Signed-off-by: clux <[email protected]> Signed-off-by: Eirik A <[email protected]> Co-authored-by: Natalie <[email protected]>
- Loading branch information
Showing
4 changed files
with
167 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.