networkservicemesh / sdk

Apache License 2.0
33 stars 36 forks source link

Injecting NSE's in specific paths in vl3 #1300

Open yuraxdrumz opened 2 years ago

yuraxdrumz commented 2 years ago

Question

I am currently experimenting with vl3 and it seems to answer my requirement of NSC talking to another NSC. I also have a requirement that, let's say every time I want to talk to a specific NSC I must pass a component, let's call it A. Now I want my flow with vl3 to go NSC1 -> NSE1 -> A -> NSE2 -> NSC2.

If something like this is supported, that would be great. If not, I have two options I can think of, and correct me if I'm wrong:

  1. Try doing composition with vl3, if it is even possible, and inject A as a passthrough
  2. Catch PathSegements somewhere along the Registry -> NSMGR -> NSC and inject A as a new path segment

Basically, I want to be able to inject machine A anywhere in the line.

Examples

An example would be NSC1 -> NSE1 -> A -> NSE2 -> NSC2. vl3-inject

Context

yuraxdrumz commented 2 years ago

I wanted to simplify my question, but i basically need something like in https://github.com/networkservicemesh/deployments-k8s/issues/5247