We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e692e3 commit 609a55aCopy full SHA for 609a55a
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/LeaderElectionManager.java
@@ -67,7 +67,9 @@ private void init(LeaderElectionConfiguration config) {
67
config.getRenewDeadline(),
68
config.getRetryPeriod(),
69
leaderCallbacks(),
70
- true,
+ // this is required to be false to receive stop event in all cases, thus stopLeading
71
+ // is called always when leadership is lost/cancelled
72
+ false,
73
config.getLeaseName()))
74
.build();
75
}
0 commit comments