Closed scarvel8 closed 6 years ago
The code looks good, though we should either document the caveats of some features, probably, not working atm - that said, having basic constraints working is better than no constraints at all !
Working on an update that will cover all contraints and be a lot more friendly in the UI, stay tuned :)
Exciting stuff @scarvel8 !
did this stall @scarvel8 ? :)
Implemented the GUI changes and it works when saved, but had some problems getting values to recall back into the GUI when you re-enter Configure System. Hopefully will get the chance to work on this by the end of the week
Nice! good job!
Updated PR and tested, usage should be pretty straightforward (this version allows symbols in the text fields and uses a Jelly repeatable to be able to add and remove constraints easily from the GUI). @jippi
Not finding the time to test this. Anyone volunteering to test and confirm it works?
@scarvel8 what did the status for this PR end with? stable?
Hello, are there plans to merge this?
@jippi @scarvel8 I built and installed this fork in our production environment. I will start using it for production load today and report back. First tests and impressions seem to indicate it works as expected.
Seems to work so far with some production load.
@jovandeginste sounds good, @jippi it has been working for me for my minor use case, but I admit I have not tested exhaustively
It works for me as well, although I have only one constrain so far :)
Had no issues so far, lgtm
Any reason against merging this?
@jippi ?
This adds the ability to impose constraints on a job submitted to Nomad via the Nomad Cloud plugin.
https://www.nomadproject.io/docs/job-specification/constraint.html
This plugin uses the JSON form to submit jobs (https://www.nomadproject.io/docs/http/json-jobs.html), therefore it uses the LTarget, RTarget, and Operand form to impose constraints. ${ } is automatically wrapped around the LTarget as most job constraints would use this parameter.
For example, to restrict to linux machines, you would add to the constraint field: attr.kernel.name,windows,=
Items are comma separated, groups of three are required, the field is optional.