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

api: added csharp namespace override to cluster and listener packages #3854

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

skwasiborski
Copy link
Contributor

Description: Api definitions for data plane api contain messages that cause naming conflict when used by protoc to build c# classes. There are two instances of the problem:

  1. pacakge: envoy.api.v2 contains message Cluster which ends up being class Envoy.Api.V2.Cluster at the same time there exists a package: envoy.api.v2.cluster which ends up as namespace. Added namespace definition as Envoy.Api.V2.ClusterNS.
  2. Envoy.Api.V2.Cluster. This is not allowed in c# and causes compilation error.
    The same problem occurs with package: envoy.api.v2 message: listener and package: envoy.api.v2.listener. Added namespace definition as Envoy.Api.V2.ListenerNS.

Risk Level: Low
Testing: None (there is currently no testing done for csharp)
Docs Changes: None
Release Notes: CSharp namespace overrides for data plane api proto definitions.
Fixes: #3827

Signed-off-by: skwasiborski skwa@demant-technology.com

Fixes envoyproxy#3827

Signed-off-by: skwasiborski <skwa@demant-technology.com>
@htuch htuch self-assigned this Jul 13, 2018
@mattklein123 mattklein123 merged commit 230228b into envoyproxy:master Jul 13, 2018
kavyako pushed a commit to microsoft/envoy that referenced this pull request Nov 13, 2018
jstallard added a commit to jstallard/envoy that referenced this pull request Jun 22, 2019
This fixes for ruby what
envoyproxy#3854
fixed for C#.
jstallard added a commit to jstallard/envoy that referenced this pull request Jun 22, 2019
This fixes for ruby what
envoyproxy#3854
fixed for C#.
Description: The existing protos yield a ruby module and class with the same name for both cluster and listener. This fixes for ruby what envoyproxy#3854 fixed for C#.
Risk Level: Low
Testing: I successfully generated valid envoy configurations using the ruby code generated by these updated protos.
Docs Changes: N/A
Release Notes: Ruby module name overrides for data plane api proto definitions.

Signed-off-by: Justin Stallard <jstallard@gmail.com>
mattklein123 pushed a commit that referenced this pull request Jun 22, 2019
This fixes for ruby what
#3854
fixed for C#.
Description: The existing protos yield a ruby module and class with the same name for both cluster and listener. This fixes for ruby what #3854 fixed for C#.
Risk Level: Low
Testing: I successfully generated valid envoy configurations using the ruby code generated by these updated protos.
Docs Changes: N/A
Release Notes: Ruby module name overrides for data plane api proto definitions.

Signed-off-by: Justin Stallard <jstallard@gmail.com>
mattklein123 pushed a commit to envoyproxy/data-plane-api that referenced this pull request Jun 22, 2019
This fixes for ruby what
envoyproxy/envoy#3854
fixed for C#.
Description: The existing protos yield a ruby module and class with the same name for both cluster and listener. This fixes for ruby what envoyproxy/envoy#3854 fixed for C#.
Risk Level: Low
Testing: I successfully generated valid envoy configurations using the ruby code generated by these updated protos.
Docs Changes: N/A
Release Notes: Ruby module name overrides for data plane api proto definitions.

Signed-off-by: Justin Stallard <jstallard@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ 47925a53e67645fa20ca60a5c3257084bd870994
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.

3 participants