Skip to content

Commit d9b05fe

Browse files
authored
Fix conflicting leaderElectionId between backup plugins
Both cnpg-plugin-pgbackrest and plugin-barman-cloud currently use the same leaderElectionId, causing leader election conflicts when deployed simultaneously in the same Kubernetes cluster. This prevents organizations from using multiple backup strategies (e.g., different plugins for different PostgreSQL clusters, migration scenarios, or multi-tenant environments). Each plugin should use a unique leader election ID to enable peaceful coexistence and allow users to deploy multiple CNPG-I backup plugins without leadership conflicts. Signed-off-by: ermakov-oleg <[email protected]>
1 parent 0592163 commit d9b05fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cnpgi/operator/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func Start(ctx context.Context) error {
106106
WebhookServer: webhookServer,
107107
HealthProbeBindAddress: viper.GetString("health-probe-bind-address"),
108108
LeaderElection: viper.GetBool("leader-elect"),
109-
LeaderElectionID: "822e3f5c.cnpg.io",
109+
LeaderElectionID: "5e3f9a6c.cnpg.io",
110110
// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
111111
// when the Manager ends. This requires the binary to immediately end when the
112112
// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly

0 commit comments

Comments
 (0)