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

b/149050012: Remove backend protocol flag #31

Merged
merged 11 commits into from
Feb 27, 2020

Conversation

nareddyt
Copy link
Contributor

@nareddyt nareddyt commented Feb 26, 2020

Allow the user to configure the entire backend address (scheme, host, and port) in the --backend flag. Remove the need for the --backend_protocol flag.

This maintains backwards compatibility with ESPv2 via the default backend address.

Actual code changes are very minimal. Majority of changes are to unit tests and integration tests:

  • BackendProtocol was required in almost all of the config generator package.
  • Every single integration test sets the --backend_protocol flag. Remove the flag in all integration tests. Just set the flag when starting config manager.

Also fix service_control_failed_request_report_test.go. In that test, backend protocol was configured incorrectly. It was using a GRPC backend but configuring the protocol as HTTP.

Signed-off-by: Teju Nareddy [email protected]

Signed-off-by: Teju Nareddy <[email protected]>
docker/generic/start_proxy.py Outdated Show resolved Hide resolved
src/go/options/configgenerator.go Outdated Show resolved Hide resolved
Signed-off-by: Teju Nareddy <[email protected]>
…rt_test.go`

In that test, backend protocol was configured incorrectly.
It was using a GRPC backend but configuring the protocol as HTTP.

Signed-off-by: Teju Nareddy <[email protected]>
Signed-off-by: Teju Nareddy <[email protected]>
@nareddyt nareddyt requested a review from qiwzhang February 27, 2020 00:48
@nareddyt
Copy link
Contributor Author

/retest

@nareddyt nareddyt requested review from JLXIA and TAOXUY February 27, 2020 01:44
docker/generic/start_proxy.py Show resolved Hide resolved
src/go/configinfo/service_info.go Outdated Show resolved Hide resolved
src/go/util/util.go Outdated Show resolved Hide resolved
src/go/configinfo/service_info.go Outdated Show resolved Hide resolved
src/go/configinfo/service_info.go Outdated Show resolved Hide resolved
@nareddyt
Copy link
Contributor Author

PTAL

@nareddyt nareddyt requested review from qiwzhang and JLXIA February 27, 2020 18:24
docker/generic/start_proxy.py Outdated Show resolved Hide resolved
docker/generic/start_proxy.py Outdated Show resolved Hide resolved
Signed-off-by: Teju Nareddy <[email protected]>
Signed-off-by: Teju Nareddy <[email protected]>
@nareddyt nareddyt requested a review from JLXIA February 27, 2020 19:57
@google-oss-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JLXIA, nareddyt, qiwzhang, TAOXUY

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JLXIA,TAOXUY,nareddyt,qiwzhang]

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

@nareddyt nareddyt merged commit 9ca74a3 into GoogleCloudPlatform:master Feb 27, 2020
@nareddyt nareddyt deleted the protocol-configuration branch February 27, 2020 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants