-
Notifications
You must be signed in to change notification settings - Fork 172
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
/go/pkg/mod/sigs.k8s.io/sig-storage-lib-external-provisioner/[email protected]/controller/controller.go:868:44: undefined: resourcelock.EndpointsLeasesResourceLock #172
Comments
Can you please elaborate more on this error? Esp., what go version do you use and what k8s.io/client-go version does your project use? sig-storage-lib-external-provisioner v9.0.3 uses k8s.io/client-go v0.26.0 that still has it, I would be very careful upgrading to never client-go releases. Use sig-storage-lib-external-provisioner v10 to get k8s.io/client-go v0.30.0 + lease lock as the default one. |
I also came across this Issue trying to update some dependencies (including client-go.) Thanks for the context, the error makes total sense now. I updated from v9 to v10 of this library and that compile-time error went away. Sorry if this is a little off topic. One question I still have about this is: how do I implement leader election in my storage controller code using the latest v10 of this library? I didn't see any mention of leader election in the example, is it handled completely by this library now? I was updating from v6 of this library, where back then I believe you needed to handle leader election outside of the library code to some extent. edit: It appears this library self-contains all the leader election code now, which is really nice. I'm not the Issue author but in my opinion this Issue is close-able. In both of our cases this is very likely just a naive update to client-go. |
Thanks @Starttoaster for sharing the feedback on upgrading to v10 of the library. |
For others who might be facing the similar issues, i'd like to highlight the some points:
|
Also @adit-cmd, If the issue is resolved now and you have no other issues to continue with, you can close this issue now. |
Hi All, thanks @Starttoaster, @jsafrane and @thisisharrsh for the response. I will try to upgrade this library again soon. However as per my experience, im getting stuck in a loop while trying to upgrade this library since the application is dependent on few other modules. Below is the require section. require ( So when I am trying to update the apimachinery and client-go to a later version, I am getting stuck in a loop with the below error while trying to build the docker image: Any help is appreciated since I am relatively new to handling go upgrades. Thanks. |
@adit-cmd, Could you please describe the issue first that you are facing in the description box, that will be helpful for the other contributors to understand the issue better? |
Since |
Ensure the versions of You can also rebuild you docker image and test if everything is working fine. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
No description provided.
The text was updated successfully, but these errors were encountered: