Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow-up for ThirdPartyResources examples #37

Closed
wants to merge 6 commits into from

Conversation

wfarr
Copy link
Contributor

@wfarr wfarr commented Nov 14, 2016

Follow-up to #29:

  • f485fdd Link to ugorji issue in code comments
  • bd676a6 Add a link to the TPR feature issue in comments
  • 4cf2426 Switch to post-1.5 import style
  • 10a1750 Don't reuse api.Scheme and api.Codecs
  • 3806ead Rename examples/third-party-resources to use underscores
  • d939327 Update README for third-party-resources example

I believe this should address all the feedback offered in #29


This change is Reviewable


// Only required to authenticate against GKE clusters
_ "k8s.io/client-go/1.5/plugin/pkg/client/auth/gcp"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

var (
Copy link

@andronat andronat Nov 16, 2016

Choose a reason for hiding this comment

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

Can you also get rid of this var? I think you don't need it to be global.

// The code below is used only to work around a known problem with third-party
// resources and ugorji. If/when these issues are resolved, the code below
// should no longer be required.
// Some of the code below is used only to work around a known problem with
Copy link
Member

Choose a reason for hiding this comment

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

Ugorji said the behavior is expected and I couldn't find any better work around, so the comment needs to be revised. How about this:

The code below is used only to work around a known problem with third-party resources and the ugorji codec (see: https://github.com/ugorji/go/issues/178). You will not need the workaround after the upstream stop using ugorji codec (tracking issue: https://github.com/kubernetes/kubernetes/issues/36120).

Sorry for keeping back and forth on this.

@caesarxuchao
Copy link
Member

Thank you @wfarr! Could you address @andronat and my comment? Otherwise LGTM.

@caesarxuchao
Copy link
Member

The issues are already fixed. Closing. Thanks, @wfarr.

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.

3 participants