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: poc for flagd as a crd proxy #421

Closed

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Feb 21, 2023

This PR

fixes #411 and introduce a proposed implementation of flagd server deployment.

How to run ?

Start server

Use the new command server with the required parameters. Consider checking auto-generated documentation [1].

To start a non-TLS server with default address (localhost:9090) binding : go run main.go server --source <K8s CRD>

ex: go run main.go server --source core.openfeature.dev/test/test

To start TLS enabled server default address (localhost:9090) binding : go run main.go server --source <K8s CRD> -s -c <cert> -k <cert_key>

ex: go run main.go server --source core.openfeature.dev/test/test -s -c server.crt -k server.key

Start flagd (client)

Once flagd server is up and running, start flagd in provider mode and connect to grpc stram,

go run main.go start --uri grpc://localhost:9090 --debug.

You can run multiple flagd instances to verify server behavior,

go run main.go start --uri grpc://localhost:9090 --debug -p 8023 -m 8024

NOTE - Flagd TLS connectivity is still pending #398

Components

Following diagram shows high-level implementation,

image

[1] - https://github.com/open-feature/flagd/blob/62dd7bba1dcdf38b56f48a284703590b6dc4e21f/docs/configuration/flagd_server.md

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #421 (62dd7bb) into main (33413f2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #421   +/-   ##
=======================================
  Coverage   63.92%   63.92%           
=======================================
  Files          11       11           
  Lines        1325     1325           
=======================================
  Hits          847      847           
  Misses        428      428           
  Partials       50       50           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
@Kavindu-Dodan
Copy link
Contributor Author

Closing with focused project - https://github.com/orgs/open-feature/projects/8

@Kavindu-Dodan Kavindu-Dodan deleted the feature/flagd-server branch March 9, 2023 22:12
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.

[Spike] Possiblity to deploy flagd as a grpc sync server
1 participant