-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add OPA to registry-memory server #1352
Add OPA to registry-memory server #1352
Conversation
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
pkg/registry/chains/memory/server.go
Outdated
// NewServer creates new registry server based on memory storage | ||
func NewServer(ctx context.Context, expiryDuration time.Duration, proxyRegistryURL *url.URL, dialOptions ...grpc.DialOption) registryserver.Registry { | ||
func NewServer(ctx context.Context, expiryDuration time.Duration, proxyRegistryURL *url.URL, options ...Option) registryserver.Registry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we can also convert expireDuration, and proxyRegistryURL to otpion.
Default values:
expireDuration: time.Minute
proxyRegistryURL: nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I very like idea to refactor memory registry to use option pattern.
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1352 Commit: b47cbd4 Author: Nikita Skrynnik Date: 2022-09-16 01:57:34 +0700 Message: - Add OPA to registry-memory server (#1352) * add options for registry-memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add more options to registry memory server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Signed-off-by: Nikita Skrynnik nikita.skrynnik@xored.com
Description
Issue link
How Has This Been Tested?
Types of changes