-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SDK not compatible with controller-runtime v0.16.2 #6608
Comments
Hi @bodji - thanks for raising this issue! This is likely because we haven't yet upgraded the Operator-SDK to work with the kubernetes 1.28 libraries that controller-runtime v0.16.z looks to be based on. The work to enable Kubernetes 1.28 support is tracked in #6554 The appropriate workaround for now would be to manually update your dependencies and resolve any conflicts. |
I see :) Ok, I can remove MetricsBindAddress and Port from the generated code then :) Thank you very much for your quick answer ! |
Closing this issue, since #6554 is tracking the required changes. |
Bug Report
The SDK init generates code that is not working with controller-runtime v0.16.2
This commit removed MetricsBindAddress in manager.Options :
kubernetes-sigs/controller-runtime@e59161e
What did you do?
Then, I added an external CRD from Prometheus operator.
The prometheus operator has a dependency on controller-runtime v0.16.2 :
https://github.com/prometheus-operator/prometheus-operator/blob/main/go.mod#L44
Environment
operator-sdk version: "v1.32.0", commit: "4dcbbe343b29d325fd8a14cc60366335298b40a3", kubernetes version: "1.26.0", go version: "go1.19.13", GOOS: "darwin", GOARCH: "arm64"
The text was updated successfully, but these errors were encountered: