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

chore(*) outbound reconciler for Universal #1422

Merged
merged 5 commits into from
Jan 18, 2021

Conversation

nickolaev
Copy link
Contributor

Summary

On Universal, updating outbands is called only when there is a new VIP coming. This breaks when we add more data planes but no new VIPs.
We make the related functionality to be executed as a component with a ticker every 500ms.
Also update the Universal multi-zone and Hybrid e2e tests to use transparent proxy, which will test that outbound update functionality in more complex scenarios.

Documentation

  • Not needed

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@@ -47,6 +48,12 @@ func (s *dnsResolver) SetVIPs(list vips.List) {
}
}

func (s *dnsResolver) GetVIPs() vips.List {
s.Lock()
Copy link
Contributor

Choose a reason for hiding this comment

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

RLock() and RUnlock()

}

const (
tickInterval = 500 * time.Millisecond
Copy link
Contributor

Choose a reason for hiding this comment

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

That cannot be hardcoded IMHO. I think the easiest way here is to just take a value from XDS Interval. There is no point in updating every 0,5s when the XDS interval is for example 10s.


var log = core.Log.WithName("dns-vips-allocator")

type OutboundsLoop struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

how about VIPOutboundsReconciller?

"github.com/kumahq/kuma/pkg/dns"
)

var log = core.Log.WithName("dns-vips-allocator")
Copy link
Contributor

Choose a reason for hiding this comment

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

name is not right

Nikolay Nikolaev added 2 commits January 15, 2021 13:51
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev
Copy link
Contributor Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Jan 18, 2021

Command update: success

Branch has been successfully updated

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ nickolaev
❌ mergify[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@nickolaev nickolaev changed the title chore(*) outbound update loop for Universal chore(*) outbound reconciler for Universal Jan 18, 2021
@nickolaev nickolaev merged commit 22a1126 into master Jan 18, 2021
@nickolaev nickolaev deleted the chore/outbound_generation_on_universal branch January 18, 2021 10:00
mergify bot pushed a commit that referenced this pull request Jan 18, 2021
* chore(*) outbound reconciler for Universal

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
(cherry picked from commit 22a1126)
nickolaev pushed a commit that referenced this pull request Jan 19, 2021
* chore(*) outbound reconciler for Universal

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
(cherry picked from commit 22a1126)

Co-authored-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants