hashicorp / hashicorp/consul

Prevent duplicate service tags

Open
#2,329 1 comment 0 reactions 0 assignees View on GitHub
theme/service-metadata type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Hi,

I have a situation where I'm using nomad job templates provided by a service with custom tags. I've created a wrapper to be able to specify additional tags during deployment. Problem with that is that Consul allows duplicate tags (which makes sense as I expect tags are an array). This leads to pollution of service tags.

Wouldn't it be better to use a `set` instead of an `array`?

Btw, for now I'm just going to check member existence in my wrapper to prevent this but IMHO it would be nice if Consul already did that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.