Open
Description
Proposal
I want to have a constraint that makes the job avoid clients with batch
(substring) in their metadata tags
(string) field.
The issue is loosely related to #6610.
test, batch, demo
--> avoid
test, demo
--> fine
Attempted Solutions
-
I've tried this:
constraint { attribute = "${meta.tags}" operator = "regexp" value = "^(?!.*batch).*$" }
But it looks the Go engine does not support negative lookaheads for performance reasons (ref).
-
One option would be to negate the
regexp
operator, butregexp_not
does not seem to exist in Nomad.
Is there any way to achieve this in Nomad? I've ended up moving batch
to a different individual metadata field, but I would like to know if it's possible just in case for next time.
Thanks!
Metadata
Metadata
Assignees
Type
Projects
Status
Needs Roadmapping