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 of klusterlet-agent on single node managed cluster #695

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

haoqing0110
Copy link
Member

@haoqing0110 haoqing0110 commented Nov 12, 2024

Summary

The leader election of the klusterlet-agent is disabled on the single node managed cluster to speed up the restart procedure. While it might cause that two pods with different configuration, such as images or bootstrap config, running at the same time. Some unexpected behavior happens in this situation, for example, when old and new agents both exist, they override hub-kubeconfig-secret with different value and trigger each other create csr constantly.

To fix those issues, it is necessary to enable the leader election of the klusterlet-agent on the single node managed cluster.

Related issue(s)

Fixes #

Copy link
Contributor

openshift-ci bot commented Nov 12, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: haoqing0110
Once this PR has been reviewed and has the lgtm label, please assign jnpacker for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@haoqing0110 haoqing0110 changed the title 🐛 enable leader election of klusterlet-agent on single node managed cluster 🌱 enable leader election of klusterlet-agent on single node managed cluster Nov 13, 2024
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.37%. Comparing base (67b4f1a) to head (81e8c59).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #695   +/-   ##
=======================================
  Coverage   63.37%   63.37%           
=======================================
  Files         185      185           
  Lines       17765    17765           
=======================================
  Hits        11258    11258           
+ Misses       5577     5576    -1     
- Partials      930      931    +1     
Flag Coverage Δ
unit 63.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@haoqing0110
Copy link
Member Author

/assign @elgnay @qiujian16

@elgnay
Copy link
Contributor

elgnay commented Nov 14, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants