Skip to content

RuntimeInfo reports started even if leader elector cannot access lease #1903

Closed
@gyfora

Description

@gyfora

Bug Report

If the operator service account doesn't have access to leases the leaderelection logic cannot work correctly and the operator simply won't start but keeps throwing errors.

At the same time the RuntimeInfo object reports isStarted() == true, so health probes set up for this do not catch this problem.

What did you do?

Start operator with leader election enabled without lease access.

What did you expect to see?

Startup probe errors.

What did you see instead? Under which circumstances?

Healthy startup probes and multiple replicas doing nothing, throwing lease access errors

Possible Solution

Only set isStarted to true when the lease was successfully accessed.

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