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

added rest xds server for endpoints #3799

Merged
merged 26 commits into from
Nov 2, 2020
Merged

added rest xds server for endpoints #3799

merged 26 commits into from
Nov 2, 2020

Conversation

EItanya
Copy link
Contributor

@EItanya EItanya commented Oct 28, 2020

Description

Allow toggling of EDS to rest XDS to avoid the envoy issue where updates to CDS require new endpoints from the control-plane

Context

envoyproxy/envoy#13070.

Checklist:

@github-actions github-actions bot added the keep pr updated signals bulldozer to keep pr up to date with base branch label Oct 28, 2020
@solo-changelog-bot
Copy link

Issues linked to changelog:
solo-io#3673
solo-io#3710
solo-io#3805

@EItanya EItanya marked this pull request as ready for review October 30, 2020 18:17
@EItanya EItanya requested review from kdorosh and yuval-k October 30, 2020 18:17
Copy link
Contributor

@kdorosh kdorosh left a comment

Choose a reason for hiding this comment

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

please update the pr description and fix conflicts

Comment on lines 10 to 13
- type: FIX
issueLink: https://github.com/solo-io/gloo/issues/3673
description: Fix EDS so modifying health checks on Upstream no longer results in 503s
resolvesIssue: true
Copy link
Contributor

Choose a reason for hiding this comment

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

this is duplicated, remove

Comment on lines 312 to 313
// file, err := ioutil.ReadFile(fixtureName)
// ExpectWithOffset(1, err).NotTo(HaveOccurred())
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

// Some examples are:
// 1. https://github.com/solo-io/gloo/issues/3673
// 2. https://github.com/solo-io/gloo/issues/3710
// 3. https://github.com/solo-io/gloo/issues/3673
Copy link
Contributor

Choose a reason for hiding this comment

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

this is duplicated. perhaps link to the envoy issue instead?

- type: NEW_FEATURE
issueLink: https://github.com/solo-io/gloo/issues/3805
description: >-
Allow toggling of EDS to rest XDS to avoid the envoy issue described in the following issue: https://github.com/envoyproxy/envoy/issues/13070.
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the default? this was a change from the original behavior before, correct?

@solo-changelog-bot
Copy link

Issues linked to changelog:
solo-io#3673
solo-io#3710
solo-io#3219
solo-io#3805

@@ -15,6 +15,7 @@ spec:
{{- else }}
xdsBindAddr: "0.0.0.0:{{ .Values.gloo.deployment.xdsPort }}"
restXdsBindAddr: "0.0.0.0:{{ .Values.gloo.deployment.restXdsPort }}"
enableRestEds: true
Copy link
Contributor

Choose a reason for hiding this comment

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

we should have a helm value for this

// Defaults to `0.0.0.0:9976`
string rest_xds_bind_addr = 11;

// Whether or not to use rest xds for all EDS by default.
// Set to true by default in versions > `v1.6.0`.
Copy link
Contributor

Choose a reason for hiding this comment

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

only set to true in helm installations, we should fix the implementation to handle nil as true

kdorosh
kdorosh previously approved these changes Nov 2, 2020
@kdorosh kdorosh added the work in progress signals bulldozer to keep pr open (don't auto-merge) label Nov 2, 2020
@EItanya EItanya removed the work in progress signals bulldozer to keep pr open (don't auto-merge) label Nov 2, 2020
@@ -66,7 +66,7 @@ require (
github.com/solo-io/reporting-client v0.1.2
github.com/solo-io/skv2 v0.8.1
github.com/solo-io/solo-apis v0.0.0-20200717214114-6a1daa5a5d05
github.com/solo-io/solo-kit v0.13.13
github.com/solo-io/solo-kit v0.13.14
Copy link
Contributor

Choose a reason for hiding this comment

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

nothing in the changelog for the codegen related changes from this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add a DEPENDENCY_BUMP. This fixed some errors in the rest xds server

@@ -15,6 +15,7 @@ spec:
{{- else }}
xdsBindAddr: "0.0.0.0:{{ .Values.gloo.deployment.xdsPort }}"
restXdsBindAddr: "0.0.0.0:{{ .Values.gloo.deployment.restXdsPort }}"
enableRestEds: {{ .Values.settings.enableRestEds | default true }}
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't understand why we need the default -- shouldn't the generated values.go file already have the true value?

kdorosh
kdorosh previously approved these changes Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep pr updated signals bulldozer to keep pr up to date with base branch
Projects
None yet
2 participants