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

Feature/kubectl to client go #89

Merged
merged 2 commits into from
Aug 24, 2021

Conversation

arnaud-tincelin
Copy link
Collaborator

@arnaud-tincelin arnaud-tincelin commented Aug 2, 2021

This PR is the client-go implementation and move away from os.exec - kubectl execution. That way we will be able to remove the os.exec dependency and kubectl binary in docker image.

please note: due to the way client-go objects work in order to form the CPU% I need to identify total cores etc, which is not part of this PR, will be awesomee to get some thoughts on that as well please. thanks guys.

  • To start with this initial work takes a dig at the existing system-err_collector and tends to move it away from direct kubectl implementation to client-go implementation.
  • https://github.com/kubernetes/client-go - is a Kubernetes client-go source code.

Thanks, 🙏 ^Tats

Opening this for wider opinion and suggestions.

cc: @arnaud-tincelin , @davidkydd, @JunSun17 and anyone interested, Thanks

Any new collectors should spend time doing this way.

@Tatsinnit Tatsinnit linked an issue Aug 2, 2021 that may be closed by this pull request
@Tatsinnit Tatsinnit marked this pull request as ready for review August 3, 2021 12:14
Copy link
Collaborator Author

@arnaud-tincelin arnaud-tincelin left a comment

Choose a reason for hiding this comment

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

May be squash the commits?

pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
@Tatsinnit Tatsinnit self-assigned this Aug 4, 2021
@Tatsinnit Tatsinnit force-pushed the feature/kubectl-to-client-go branch from 8590711 to 1e3b164 Compare August 5, 2021 04:57
@Tatsinnit Tatsinnit force-pushed the feature/kubectl-to-client-go branch from ac212f5 to bb0e00e Compare August 7, 2021 12:38
README.md Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Outdated Show resolved Hide resolved
pkg/collector/systemperf_collector.go Show resolved Hide resolved
@Tatsinnit Tatsinnit force-pushed the feature/kubectl-to-client-go branch from 3d37ca2 to b5b19a3 Compare August 8, 2021 10:56
@arnaud-tincelin
Copy link
Collaborator Author

I can't approve this PR @Tatsinnit because I opened it ... But this message will do. Feel free to merge!

@Tatsinnit Tatsinnit merged commit d2f347f into Azure:master Aug 24, 2021
@Tatsinnit Tatsinnit deleted the feature/kubectl-to-client-go branch September 2, 2021 18:29
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.

Upgrade \ Move RunCommandOnHost to using client-go api.
3 participants