Repository navigation
ref(*): kubernetes v1.12 support - #4734
Conversation
Signed-off-by: Adam Reese <[email protected]>
|
To test in cluster run |
bacongobbler
left a comment
There was a problem hiding this comment.
One question about how we want to watch objects for state changes; everything else looks great!
| _, err = watch.Until(timeout, w, func(e watch.Event) (bool, error) { | ||
| ctx, cancel := watchtools.ContextWithOptionalTimeout(context.Background(), timeout) | ||
| defer cancel() | ||
| _, err = watchtools.UntilWithoutRetry(ctx, w, func(e watch.Event) (bool, error) { |
There was a problem hiding this comment.
would it be valuable to use UntilWithSync instead, or do we want to intentionally close out the connection when we hit the timeout? Based on the docstrings client-go provided, it looks like they'll remove this endpoint eventually, and they recommend using UntilWithSync.
What do you think?
There was a problem hiding this comment.
That function signature is very different, I would rather use as close to a drop-in as possible for helm2
| _, err = watch.Until(timeout, w, func(e watch.Event) (bool, error) { | ||
| ctx, cancel := watchtools.ContextWithOptionalTimeout(context.Background(), timeout) | ||
| defer cancel() | ||
| _, err = watchtools.UntilWithoutRetry(ctx, w, func(e watch.Event) (bool, error) { |
There was a problem hiding this comment.
same question here in regards to WaitUntilSync
No description provided.