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

fix: do not choose endpoints that doesn't match the network service #1516

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

denis-tingaikin
Copy link
Member

Description

do not choose endpoints that doesn't match with the network service

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

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Comment on lines +632 to +633
require.Empty(t, matchutils.MatchEndpoint(map[string]string{}, ns, nseD), "there are no matches for nse-D")
require.Empty(t, matchutils.MatchEndpoint(map[string]string{"app": "nse-autoscaler"}, ns, nseD), "there are no matches for nse-D")
Copy link
Member Author

Choose a reason for hiding this comment

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

MatchEndpoint from main branch fails here

@denis-tingaikin denis-tingaikin marked this pull request as ready for review September 25, 2023 19:01
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1516   +/-   ##
=======================================
  Coverage        ?   70.17%           
=======================================
  Files           ?      248           
  Lines           ?    11207           
  Branches        ?        0           
=======================================
  Hits            ?     7864           
  Misses          ?     2843           
  Partials        ?      500           

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

@denis-tingaikin denis-tingaikin changed the title fix: do not choose endpoints that doesn't match with the network service fix: do not choose endpoints that doesn't match the network service Sep 25, 2023
@denis-tingaikin denis-tingaikin self-assigned this Sep 26, 2023
@edwarnicke
Copy link
Member

This looks good to me, the only question is whether to merge this for 1.11 or wait for 1.12.

@denis-tingaikin do you have an opinion there?

@denis-tingaikin
Copy link
Member Author

@edwarnicke I think we might merge this into v1.11.0 right after all planned staff is merged, and if we fail, we could quickly revert this and continue working on it in the next release.

@glazychev-art glazychev-art merged commit f2a585e into main Oct 2, 2023
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-csi-driver that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Oct 2, 2023
…k@main

PR link: networkservicemesh/sdk#1516

Commit: f2a585e
Author: Denis Tingaikin
Date: 2023-10-02 13:32:15 +0300
Message:
  - do not choose endpoints that doesn't match with the network service (#1516)
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
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants