-
-
Notifications
You must be signed in to change notification settings - Fork 331
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 <sszynrae@gmail.com> * better enum variant names in kube-runtime + less aggressive docs Signed-off-by: clux <sszynrae@gmail.com> * rename enum variant, clean up tests and helper methods Signed-off-by: clux <sszynrae@gmail.com> * use verbs to be more consistent Signed-off-by: clux <sszynrae@gmail.com> * Apply suggestions from code review Co-authored-by: Natalie <teo.roijezon@stackable.de> Signed-off-by: Eirik A <sszynrae@gmail.com> * use match rather than if/else on enum Signed-off-by: clux <sszynrae@gmail.com> * fix tests Signed-off-by: clux <sszynrae@gmail.com> * remove unset variant, replace with Option Signed-off-by: clux <sszynrae@gmail.com> * fix deny Signed-off-by: clux <sszynrae@gmail.com> * also fix kube-runtime tests Signed-off-by: clux <sszynrae@gmail.com> * ws Signed-off-by: clux <sszynrae@gmail.com> * use kubernetes terminology for enum and avoid changing default behaviour Signed-off-by: clux <sszynrae@gmail.com> * leftover any Signed-off-by: clux <sszynrae@gmail.com> * put caveats on MostRecent Signed-off-by: clux <sszynrae@gmail.com> --------- Signed-off-by: clux <sszynrae@gmail.com> Signed-off-by: Eirik A <sszynrae@gmail.com> Co-authored-by: Natalie <teo.roijezon@stackable.de>
- 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.