You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ivankatliarchuk
changed the title
LeaderElection NewFromKubeconfig support
LeaderElection NewFromKubeconfig support options
Jan 26, 2025
ivankatliarchuk
changed the title
LeaderElection NewFromKubeconfig support options
LeaderElection NewFromKubeconfig support "Functional Options" pattern
Jan 26, 2025
Currently if we would like to have an automated cleanup of leases, the only way is to
The code is here https://github.com/kubernetes/client-go/blob/ce24f3c462e8e98af9d79453327a77ffdc4a8b0e/tools/leaderelection/resourcelock/interface.go#L104C2-L111C3
The proposed functionality is to add something like below, this should not break current clients, or add one more
pseudo code
I'm happy to submit a pull request if it make sense.
A bit more explanation https://golang.cafe/blog/golang-functional-options-pattern.html
The text was updated successfully, but these errors were encountered: