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

Add OPA to registry-memory server #1352

Merged

Conversation

NikitaSkrynnik
Copy link
Contributor

Signed-off-by: Nikita Skrynnik nikita.skrynnik@xored.com

Description

Issue link

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionallity
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
@NikitaSkrynnik NikitaSkrynnik marked this pull request as ready for review September 14, 2022 09:39
// 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 {
Copy link
Member

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

Copy link
Member

@denis-tingaikin denis-tingaikin left a 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>
@denis-tingaikin denis-tingaikin merged commit b47cbd4 into networkservicemesh:main Sep 15, 2022
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Sep 15, 2022
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Sep 15, 2022
…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>
@NikitaSkrynnik NikitaSkrynnik deleted the opa-registry-memory branch July 13, 2023 09:18
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.

2 participants