-
Notifications
You must be signed in to change notification settings - Fork 351
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
feat: support controller as etcd server #1803
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1803 +/- ##
==========================================
- Coverage 40.47% 36.87% -3.61%
==========================================
Files 92 93 +1
Lines 7100 7851 +751
==========================================
+ Hits 2874 2895 +21
- Misses 3842 4568 +726
- Partials 384 388 +4
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I want to put this to v1.8. So we won't do a detailed review of this PR before the release of v1.7. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo. Does this feature means the adpater is using btree in-mem?
pkg/providers/controller.go
Outdated
@@ -390,6 +433,7 @@ func (c *Controller) run(ctx context.Context) { | |||
KubeClient: c.kubeClient, | |||
MetricsCollector: c.MetricsCollector, | |||
Recorder: c.recorder, | |||
Eletor: c.elector, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - Elector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Updated.
@@ -280,7 +279,7 @@ updateStatus: | |||
} | |||
|
|||
func (c *apisixUpstreamController) updateStatus(obj kube.ApisixUpstream, statusErr error) { | |||
if obj == nil { | |||
if obj == nil || c.Kubernetes.DisableStatusUpdates || !c.Eletor.IsLeader() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - c.Elector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main implementation in it, I think is enough for this PR. So once the other comments are all addressed I will give my LGTM
Great design, providing a clearer control plane and data plane architecture. However, I have a few questions:
|
|
Yes. |
Due to the fact that this feature has already been mostly completed and v1.7 has not yet been released, I think it's possible to move this feature to version v1.7. |
Wait for CI. |
Type of change:
What this PR does / why we need it:
ref:
Pre-submission checklist: