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

xds client implementation #46

Merged
merged 38 commits into from
Apr 18, 2020
Merged

Conversation

jyotimahapatra
Copy link
Contributor

Signed-off-by: Jyoti Mahapatra jmahapatra@lyft.com

Jyoti Mahapatra added 4 commits April 1, 2020 09:50
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
@jessicayuen jessicayuen linked an issue Apr 9, 2020 that may be closed by this pull request
Jyoti Mahapatra added 2 commits April 9, 2020 11:23
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
@jyotimahapatra jyotimahapatra changed the title [WIP] xds client implementation xds client implementation Apr 9, 2020
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Copy link
Member

@jessicayuen jessicayuen left a comment

Choose a reason for hiding this comment

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

I'm excited about this! A few questions to begin with:

internal/app/server/server.go Outdated Show resolved Hide resolved
internal/app/upstream/client.go Outdated Show resolved Hide resolved
internal/app/upstream/client.go Show resolved Hide resolved
internal/app/upstream/client.go Show resolved Hide resolved
internal/app/upstream/client.go Outdated Show resolved Hide resolved
internal/app/upstream/client.go Outdated Show resolved Hide resolved
internal/app/upstream/client.go Outdated Show resolved Hide resolved
internal/app/upstream/client.go Outdated Show resolved Hide resolved
internal/app/upstream/client.go Show resolved Hide resolved
internal/app/upstream/client.go Outdated Show resolved Hide resolved
Jyoti Mahapatra added 5 commits April 9, 2020 17:26
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Jyoti Mahapatra added 3 commits April 15, 2020 09:30
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
test/mocks/upstream/client.go Outdated Show resolved Hide resolved
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Jyoti Mahapatra added 3 commits April 17, 2020 11:45
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Jyoti Mahapatra added 4 commits April 17, 2020 12:03
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
@lita
Copy link

lita commented Apr 17, 2020

Last set of comments, otherwise looks LGTM. will approve once that select statement is cleaned up.

Jyoti Mahapatra added 2 commits April 17, 2020 14:46
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
defer cancelFunc()
select {
case <-ctx.Done():
// Context was cancelled, hence this is not an erroneous scenario.
Copy link

Choose a reason for hiding this comment

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

Shouldn't this be above the case? 🤔 Not sure about go formatting so I could be wrong!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm...i will look at why lint is not catching it in the next PR.

@jessicayuen jessicayuen merged commit 165743e into envoyproxy:master Apr 18, 2020
@jyotimahapatra jyotimahapatra deleted the xdsimpl branch April 20, 2020 16:28
jessicayuen pushed a commit to jessicayuen/xds-relay that referenced this pull request Apr 21, 2020
* Don't extend TTL for AddWatch (envoyproxy#60)

Fixes envoyproxy#58 

The expiration time should only be delayed in SetResponse, since the intent of the TTL was to avoid stale responses in the cache. Adding/removing watches should not affect the expiration time of a key. This change removes that extension from AddWatch, and envoyproxy#59 already omits the expiry time extension.

Signed-off-by: Lisa Lu <lisalu@lyft.com>

* xds client implementation (envoyproxy#46)

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>

* add With

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>

Co-authored-by: Lisa Lu <lisalu@lyft.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.

Add client interface to upstream control plane
3 participants