Create a new tag filter. A tag filter is comprised of zero or more tag names, each with an
optional value. The tag spec is a simple string format that contains zero or
more tag names with optional values.
All of the following forms are acceptable for a filter spec:
- name1=value1 name2=value2
- name1:value1, name2=value2
- name1=value1 name2=value2,name3:value3
- name1='.*fast.*', name2=1+
That is, you can use spaces or commas between tag (name,value) pairs, and you can also use
colons or equals between the actual tag names and values. This is not to support mixed formatting, but it
does allow for some flexibility when integrating with other formats. Extra spaces between (name,value)
pairs are ignored.
As well, you can include regex patterns in your tag filter values. You can also use single quotes to
guard against
However, the following forms are not acceptable for a tag spec:
name1: value1
no extra spaces between the key and value
name-foo__bar:value1
No non-word characters in tag names
name1: value two
no spaces in tag values
name1: 'value two'
no spaces in tag values, even with single-quotes