-
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
NSE Composition: Discover should update Source/Destination labels #878
Comments
We need also somehow store labels for conn.Id in metadata map. @Bolodya1997 Will your proposal work correctly for cases when all nses locate on different nodes with their own nsmgr? |
Yes, each NSMgr would store destination labels for its own clients. |
@Bolodya1997 NSMgr shouldn't generally be updating source destination labels except in some rare cases (like making sure we have Node, Cluster, etc labels correctly set). The NSMgr should not be 'computing' source labels for the next hop... that's the NSEs responsiblity, not the NSMgrs. |
@edwarnicke
1. I need
|
So the usecase I have meant in (2) is the following: ---
apiVersion: networkservicemesh.io/v1alpha1
kind: NetworkService
metadata:
name: ns-example
spec:
payload: IP
matches:
- match:
route:
- destination:
destinationSelector:
zip: compress
- destination:
destinationSelector:
tar: compress
- match:
sourceSelector:
zip: compress
route:
- destination:
destinationSelector:
zip: passthrough-1
- match:
sourceSelector:
tar: compress
route:
- destination:
destinationSelector:
tar: passthrough-1
...
- match:
sourceSelector:
zip: passthrough-3
route:
- destination:
destinationSelector:
zip: decompress
- match:
sourceSelector:
tar: passthrough-3
route:
- destination:
destinationSelector:
tar: decompress
- match:
sourceSelector:
zip: decompress
route:
- destination:
destinationSelector:
zip: vpn
- match:
sourceSelector:
tar: decompress
route:
- destination:
destinationSelector:
tar: vpn Client requests for We probably can split this complex service into The problem with the current solution from the monorepo is the following: what labels should use |
@Bolodya1997 Did we sort out the confusion here over IM? If so, can we close this? |
Yep, I will do it tomorrow after some internal communications with the team. |
Overview
Discover chain element (or added new) should update
Request.Connection.Labels
to the nextSource
labels:References
Tests
discover
.The text was updated successfully, but these errors were encountered: