-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
github.com/prometheus/common v0.48.0 is incompatible with Kubernetes #2742
Comments
@twz123 mind submitting a revert PR? |
Sure, I can do it on Tuesday, I guess. |
Sound reasonable to me. I would take a closer look at your PR tomorrow |
Thx for the fix! I tried to reproduce by bumping Cluster API to controller-runtime main before the fix. Initially I didn't hit the error because bumping controller-runtime didn't bump But once I aligned/changed the version of I suspect the reason why it wasn't bumped in my case is because our code also has a direct dependency on Anyway, makes sense to align these versions to k/k, we have to be more careful in the future. Thx for testing/using controller-runtime main! |
That dependency has been bumped in #2699. Upstream Kubernetes uses v0.44. In prometheus/common#576, which has been released as v0.48.0, a public symbol has been made private. That public symbol is being used in Kubernetes here: https://github.com/kubernetes/kubernetes/blob/f4e246bc93ffb68b33ed67c7896c379efa4207e7/staging/src/k8s.io/component-base/metrics/testutil/metrics.go#L73.
I can workaround that by adding to
replace github.com/prometheus/common => github.com/prometheus/common v0.47.0
ingo.mod
. Is that something to be fixed here by downgrading the dependency or should I live with the replace directive?The text was updated successfully, but these errors were encountered: