slime-io / slime

An intelligent ServiceMesh manager based on Istio
https://slime-io.github.io/
Other
425 stars 78 forks source link

meshreg: enhance InstanceMetaRelabel to support adding new KV and add zk support for it #503

Closed believening closed 5 months ago

believening commented 5 months ago

This PR introduces the CreatedWithValue in the InstanceMetaRelabel API, enabling the addition of extra metadata pairs for instances. Additionally, it implements support for the InstanceMetaRelabel API on the zk source.

for example:

# zk config
ZookeeperSource:
  InstanceMetaRelabel:
    Items:
    - Key: foo
      TargetKey: foo
      CreatedWithValue: "bar"

# origional meta of the instance
hello: world

# new meta of the instance
hello: world
foo: bar