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

fix: configuration of kube-vip per-service leader election #210

Merged

Conversation

unlimitedt
Copy link
Contributor

Description

Previously used enableServicesElection is not an accepted environment variable but a field in the kube-vip YAML config file.

  • The related environment variable is svc_election, which is already present in the DaemonSet template
  • Use rke2_kubevip_service_election_enable to set the svc_election in DaemonSet template
  • Change default value to true to maintain original behavior

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Small minor change not affecting the Ansible Role code (GitHub Actions Workflow, Documentation etc.)

How Has This Been Tested?

Previously used `enableServicesElection` is not an accepted environment
variable but a field in the kube-vip YAML config file.

* The related environment variable is `svc_election`, which is already
  present in the DaemonSet template
* Use `rke2_kubevip_service_election_enable` to set the `svc_election`
  in DaemonSet template
* Change default value to `true` to maintain original behavior

Signed-off-by: Tomas Nestrojil <[email protected]>
@MonolithProjects MonolithProjects added the bug Something isn't working label Apr 5, 2024
@MonolithProjects MonolithProjects self-assigned this Apr 5, 2024
Copy link
Collaborator

@MonolithProjects MonolithProjects left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@MonolithProjects MonolithProjects merged commit dbe86a0 into lablabs:main Apr 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants