Skip to content

Document expected behavior of LeaderElector.RunAsync() #1467

Closed
@PSanetra

Description

@PSanetra

Describe the bug
LeaderElector.RunAsync() is not documented at the moment, but it seems like RunAsync() will only try once to obtain a Lease and will just exit after loosing leadership (e.g. during network issues). This behavior might be unexpected as the bug in buehler/dotnet-operator-sdk#677 is showing and should be documented to avoid confusion.

Kubernetes C# SDK Client Version
12.1.1

Server Kubernetes Version
v1.27.3

Dotnet Runtime Version
net7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions