Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Fix leader election for IC pods #90

Merged
merged 1 commit into from
Apr 1, 2021
Merged

Fix leader election for IC pods #90

merged 1 commit into from
Apr 1, 2021

Conversation

pleshakov
Copy link
Contributor

Proposed changes

  • The operator now configures the leader-election-lock-name cli
    argument of the IC with the value based on the name of the
    NginxIngressController resource. This allows deploying multiple
    ICs in the same namespace.
  • The documentation and type of the spec.EnableLeaderElection is
    updated: it is now a pointer with the default value 'true'. This
    matches the default value of the corresponding IC cli argument.
    The previous behavior was also incorrect - the operator would always
    enable the leader election, no matter the value of
    spec.EnableLeaderElection.

Fixes #87

- The operator now configures the leader-election-lock-name cli
argument of the IC with the value based on the name of the
NginxIngressController resource. This allows delpoying multiple
ICs in the same namespace.
- The documentation and type of the spec.EnableLeaderElection is
updated: it is now a pointer with the default value 'true'. This
matches the default value of the corresponding IC cli argument.
The previous behavior was also incorrect - the operator would always
enable the leader election, no matter the value of
spec.EnableLeaderElection.
@pleshakov pleshakov added bug An issue reporting a potential bug change Pull requests that introduce a change labels Mar 31, 2021
@github-actions github-actions bot added the documentation Pull requests/issues for documentation label Mar 31, 2021
@pleshakov pleshakov merged commit 84f1d3b into master Apr 1, 2021
@pleshakov pleshakov deleted the fix-leader-election branch April 1, 2021 18:16
@lucacome lucacome removed the change Pull requests that introduce a change label Apr 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug An issue reporting a potential bug documentation Pull requests/issues for documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IP not assigned to ingresses when two instances of nginx ingress controller are deployed in a same cluster
4 participants