mantl / mesos-consul

Mesos to Consul bridge for service discovery
Apache License 2.0
338 stars 95 forks source link

Add support for tags #25

Closed micahlmartin closed 8 years ago

micahlmartin commented 8 years ago

Looks for a label in the state.json with the tags key and parses it as a comma-separated list of values into ServiceTags in Consul.

// state.json
labels: [{
  key: "tags",
  value: "label1,label2,label3"
}]
// /v1/catalog/service/<service-id>
ServiceTags: [
  "label1",
  "label2",
  "label3"
]
ChrisAubuchon commented 8 years ago

I added this to the 0.3 branch that was just merged into the master.