Skip to content

Expose leader information #1089

@goldmann

Description

@goldmann

JOSDK supports leader election where we can have multiple replicas running the operator and only one will be guaranteed to perform it's job and the other will be on stand-by: https://javaoperatorsdk.io/docs/documentation/features/#leader-election

It would be good to have a way to expose this information so that other parts of the service could make use of it. And by other parts I mean code that is not strictly related to the operator. For example our custom logic should be only run on the pod that is the current leader.

Metadata

Metadata

Assignees

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