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
Describe the bug
Leader election should report any errors in trying to acquire a lock on a lease, not only when the response code is NotFound. A specific case where an error should be reported would be when the service account doesn't have permissions to create/update a lease.
Kubernetes C# SDK Client Version
15.0.1
Dotnet Runtime Version
net8
To Reproduce
Use the LeaderElector class in a pod running without permissions on coordination.k8s.io/leases.
Expected behavior
One would expect RunUntilLeadershipLostAsync to trigger an OnError invocation when the k8s api returns 403.
The text was updated successfully, but these errors were encountered:
Describe the bug
Leader election should report any errors in trying to acquire a lock on a lease, not only when the response code is NotFound. A specific case where an error should be reported would be when the service account doesn't have permissions to create/update a lease.
Kubernetes C# SDK Client Version
15.0.1
Dotnet Runtime Version
net8
To Reproduce
Use the LeaderElector class in a pod running without permissions on coordination.k8s.io/leases.
Expected behavior
One would expect RunUntilLeadershipLostAsync to trigger an OnError invocation when the k8s api returns 403.
The text was updated successfully, but these errors were encountered: