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

The vendored kubernetes client is completely obsolete #4021

Closed
nim-nim opened this Issue Mar 28, 2018 · 10 comments

Comments

Projects
None yet
4 participants
@nim-nim
Copy link

nim-nim commented Mar 28, 2018

Prometheus badly needs to resync its kubernetes vendoring.

It is still vendoring the kubernetes client 3.0 that was released in July 2017. Since then kubernetes started syncing their package versions, so the current client is 1.10.0 like kubernetes itself.

During all those releases numerous bugs and security issues were fixed.
Prometheus is building with Go 1.10; but kubernetes itself is not supporting Go 1.10 and will never support it for such ancient releases as 3.0 client. Prometheus needs to get closer to the current kubernetes version to get a chance to be supported when Go 1.10 support ships in kubernetes.

@FUSAKLA

This comment has been minimized.

Copy link
Contributor

FUSAKLA commented Mar 28, 2018

There was a pull request to upgrade but was closed unfortunatelly
#3895

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Mar 28, 2018

yep that was, me it is too big of change and without a proper e2e test it is a bit like shooting in the dark.

The request to the k8s api server are going through the wire so why would it matter what golang version is Prometheus and k8s built on?

if anyone can test it in some staging environment and can confirm that it doesn't brake anything we might consider merging it.
Otherwise if it is not in an immediate need than we are building a proper e2e testing CI which should be ready in few month and would be safer to merge after a proper testing.

@FUSAKLA

This comment has been minimized.

Copy link
Contributor

FUSAKLA commented Mar 29, 2018

I could test it in our staging env that shouldn't be a problem.
I'd be glad to get it merged so I can continue on the #3876.
After the upgrade to newer version of the k8s client it would be pretty straightforward to add those metrics.

Will you have the time to rebase it any time soon or should I rebase it by myself?

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Mar 29, 2018

rebased and attached file if you want to test it, or make a new build from my branch.
#3895
https://github.com/prometheus/prometheus/files/1859485/prometheus.zip

@FUSAKLA

This comment has been minimized.

Copy link
Contributor

FUSAKLA commented Mar 29, 2018

Great thanks
I'll try to deploy it asap

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Apr 9, 2018

any progress with the tests?

@FUSAKLA

This comment has been minimized.

Copy link
Contributor

FUSAKLA commented Apr 10, 2018

It's up and running and I didn't see any problems for the last 12 days.

Unfortunately I didn't have much spare time so I didn't get to any load testing (the staging environment is not saturated that much).

Hopefully will get to that soon but as I said, it looks promising.

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Apr 10, 2018

no rush, it is best to test properly.

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Aug 3, 2018

Closed by #4336

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.