Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable leader election by default #980

Merged
merged 1 commit into from
Jun 8, 2020
Merged

Enable leader election by default #980

merged 1 commit into from
Jun 8, 2020

Conversation

Rulox
Copy link
Contributor

@Rulox Rulox commented Jun 4, 2020

Proposed changes

With the new feature in #973, it is required to have leader election to avoid multiple replicas to try to update the VS/VSR status.

When the KIC is deployed using Helm, leaderElection is enabled by default. With this change, we do the same when the users deploy the KIC manually deploying the manifests.

Copy link
Contributor

@Dean-Coakley Dean-Coakley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be cleaner to have the flag default to true and remove all references to enabling leader election from manifests. But I'm happy with merging either.

leaderElectionEnabled = flag.Bool("enable-leader-election", false,
"Enable Leader election to avoid multiple replicas of the controller reporting the status of Ingress, VirtualServer and VirtualServerRoute resources -- only one replica will report status. See -report-ingress-status flag.")

@Rulox
Copy link
Contributor Author

Rulox commented Jun 8, 2020

That sounds better thanks @Dean-Coakley , I'll do the changes

Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Rulox Rulox changed the title Enable leader election as default argument in manifests Enable leader election as default Jun 8, 2020
@Rulox Rulox merged commit 650c315 into master Jun 8, 2020
@Rulox Rulox deleted the leader-election-default branch June 8, 2020 16:21
@pleshakov pleshakov changed the title Enable leader election as default Enable leader election by default Jul 8, 2020
@pleshakov pleshakov added the change Pull requests that introduce a change label Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change Pull requests that introduce a change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants