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

Separate credentialprovider into files with buildtag 🏷 #630

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

vdemeester
Copy link
Contributor

Each files for each provider (aws, azure, gcp, …) have a "negative"
build tag, this means by default, no behaviour change, they are all
compiled β€” but they can be disabled using disable-….
This allows a library to depend on k8schain but not having those
automatic import, or at least choose the one to enable/disable.

Signed-off-by: Vincent Demeester [email protected]

@vdemeester
Copy link
Contributor Author

/cc @jonjohnsonjr @imjasonh πŸ‘Ό

@vdemeester vdemeester force-pushed the k8schain-provider-buildtags branch from bbc65a3 to 3ed8b06 Compare December 12, 2019 16:32
@codecov-io
Copy link

codecov-io commented Dec 12, 2019

Codecov Report

Merging #630 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #630   +/-   ##
=======================================
  Coverage   76.29%   76.29%           
=======================================
  Files         101      101           
  Lines        4412     4412           
=======================================
  Hits         3366     3366           
  Misses        636      636           
  Partials      410      410
Impacted Files Coverage Ξ”
pkg/authn/k8schain/k8schain.go 68.42% <ΓΈ> (ΓΈ) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 0eaa33c...4a4db35. Read the comment docs.

@jonjohnsonjr
Copy link
Collaborator

jonjohnsonjr commented Dec 12, 2019

This seems reasonable to me, can you update the copyright year to 2019?

Also this seems like a bug in kubernetes/kubernetes with the gcp credentialprovider. Is there an upstream bug?

jonjohnsonjr
jonjohnsonjr previously approved these changes Dec 12, 2019

package k8schain

// TODO(mattmoor): This doesn't seem to build, figure out why `dep ensure`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it might be worth just dropping this entirely.

@jonjohnsonjr jonjohnsonjr self-requested a review December 12, 2019 21:39
@jonjohnsonjr jonjohnsonjr dismissed their stale review December 12, 2019 21:39

Didn't mean to hit approve!

Each files for each provider (aws, azure, gcp, …) have a "negative"
build tag, this means by default, no behaviour change, they are all
compiled β€” but they can be disabled using `disable-…`.
This allows a library to depend on k8schain but not having those
automatic import, or at least choose the one to enable/disable.

Signed-off-by: Vincent Demeester <[email protected]>
@vdemeester
Copy link
Contributor Author

This seems reasonable to me, can you update the copyright year to 2019?

Also this seems like a bug in kubernetes/kubernetes with the gcp credentialprovider. Is there an upstream bug?

Done πŸ‘Ό Didn't find an upstream bug, so created one: kubernetes/kubernetes#86245

@jonjohnsonjr jonjohnsonjr merged commit 2f24255 into google:master Dec 13, 2019
@vdemeester vdemeester deleted the k8schain-provider-buildtags branch December 13, 2019 19:43
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