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

feat: added custom grpc resolver #1424

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pradeepbbl
Copy link
Member

@pradeepbbl pradeepbbl commented Oct 14, 2024

This PR

Added custom gRPC resolver to support envoy proxy

  • support gRPC custom resolver

Related Issues

Fixes open-feature/go-sdk-contrib#585

Notes

  • update .github/workflow/build.yaml to install envoy binary part of e2e test.
  • this is a pre-requisite for flagd go provider update

How to test

Unit test are already added for the custom resolver for integration test you need a working envoy proxy support or any of the supported core resolver mentioned here

bin % ./flagd start -x --uri envoy://localhost:9211/test.service

                 ______   __       ________   _______    ______      
                /_____/\ /_/\     /_______/\ /______/\  /_____/\     
                \::::_\/_\:\ \    \::: _  \ \\::::__\/__\:::_ \ \    
                 \:\/___/\\:\ \    \::(_)  \ \\:\ /____/\\:\ \ \ \   
                  \:::._\/ \:\ \____\:: __  \ \\:\\_  _\/ \:\ \ \ \  
                   \:\ \    \:\/___/\\:.\ \  \ \\:\_\ \ \  \:\/.:| | 
                    \_\/     \_____\/ \__\/\__\/ \_____\/   \____/_/                                                                                                            

2024-10-14T20:19:51.411+0200    info    cmd/start.go:120        flagd version: dev (f716423), built at: 2024-10-14T20:19:34Z    {"component": "start"}
2024-10-14T20:19:51.412+0200    debug   telemetry/builder.go:81 skipping trace provider setup as collector target is not set. Traces will use NoopTracerProvider provider and propagator will use no-Op TextMapPropagator
2024-10-14T20:19:51.412+0200    info    flag-sync/sync_service.go:54    starting flag sync service on port 8015 {"component": "FlagSyncService"}
2024-10-14T20:19:51.412+0200    debug   builder/syncbuilder.go:111      using grpc sync-provider for: envoy://localhost:9211/test.service       {"component": "sync"}
2024-10-14T20:19:51.413+0200    info    flag-evaluation/connect_service.go:247  metrics and probes listening at 8014    {"component": "service"}
2024-10-14T20:19:51.413+0200    info    ofrep/ofrep_service.go:56       ofrep service listening at 8016 {"component": "OFREPService"}
2024-10-14T20:19:51.415+0200    info    flag-evaluation/connect_service.go:227  Flag IResolver listening at [::]:8013   {"component": "service"}
2024-10-14T20:19:51.428+0200    debug   grpc/grpc_sync.go:201   received full configuration payload     {"component": "sync", "sync": "grpc"}
2024-10-14T20:19:55.057+0200    debug   grpc/grpc_sync.go:201   received full configuration payload     {"component": "sync", "sync": "grpc"}

added support for gRPC name resolver with a custom
name resolver for `envoy` proxy

Signed-off-by: Pradeep <pradeepbbl@gmail.com>
@pradeepbbl pradeepbbl requested a review from a team as a code owner October 14, 2024 18:39
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 14, 2024
@pradeepbbl pradeepbbl marked this pull request as draft October 14, 2024 18:39
Copy link

netlify bot commented Oct 14, 2024

Deploy Preview for polite-licorice-3db33c canceled.

Name Link
🔨 Latest commit 2e07024
🔍 Latest deploy log https://app.netlify.com/sites/polite-licorice-3db33c/deploys/67136dc6cbc34100088b06d4

Signed-off-by: Pradeep <pradeepbbl@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flagd] Support custom schemes (name resolvers)
3 participants