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

Pass dial timeout as option #1599

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

glazychev-art
Copy link
Contributor

@glazychev-art glazychev-art commented Mar 22, 2024

Description

Several options were missed

Issue link

networkservicemesh/deployments-k8s#11372

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 functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@a9e38d9). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1599   +/-   ##
=======================================
  Coverage        ?   67.24%           
=======================================
  Files           ?      262           
  Lines           ?    12443           
  Branches        ?        0           
=======================================
  Hits            ?     8367           
  Misses          ?     3552           
  Partials        ?      524           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -100,4 +110,5 @@ type clientOptions struct {
nsAdditionalFunctionality []registry.NetworkServiceRegistryClient
nseAdditionalFunctionality []registry.NetworkServiceEndpointRegistryClient
dialOptions []grpc.DialOption
dialTimeout time.Duration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a default value for the dialTimeout for the case when dialTimeout is not passed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have default values ​​in the chain element.

dialTimeout: time.Millisecond * 300,

Do you think that additional ones need to be defined?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I can see, if WithDialTimeout is not passed to the chains/client then the dial timeout here  would be zero:

dialTimeout: time.Millisecond * 300,

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
@denis-tingaikin denis-tingaikin merged commit 368383f into networkservicemesh:main Mar 25, 2024
17 checks passed
nsmbot pushed a commit to networkservicemesh/cmd-csi-driver that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-dashboard-backend that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Mar 25, 2024
…k@main

PR link: networkservicemesh/sdk#1599

Commit: 368383f
Author: Artem Glazychev
Date: 2024-03-25 16:45:24 +0700
Message:
  - Pass dial timeout as option (#1599)
* Pass dial timeout as option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Fix review comments

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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