Skip to content

ref(*): kubernetes v1.12 support - #4734

Merged
adamreese merged 1 commit into
helm:masterfrom
adamreese:ref/kube-1.12
Oct 11, 2018
Merged

adamreese merged 1 commit into
helm:masterfrom
adamreese:ref/kube-1.12

Conversation

@adamreese

Copy link
Copy Markdown
Member

No description provided.

@adamreese adamreese added this to the 2.12.0 - Features milestone Oct 4, 2018
@adamreese adamreese self-assigned this Oct 4, 2018
@adamreese

Copy link
Copy Markdown
Member Author

To test in cluster run helm init --upgrade --tiller-image quay.io/adamreese/tiller:kube-v1.12

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question about how we want to watch objects for state changes; everything else looks great!

Comment thread pkg/kube/client.go
_, 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) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That function signature is very different, I would rather use as close to a drop-in as possible for helm2

Comment thread pkg/kube/client.go
_, 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) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question here in regards to WaitUntilSync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants