Files
nomad/api
Michael Schurter 75d6d4ec5e core: add semver constraint
The existing version constraint uses logic optimized for package
managers, not schedulers, when checking prereleases:

- 1.3.0-beta1 will *not* satisfy ">= 0.6.1"
- 1.7.0-rc1 will *not* satisfy ">= 1.6.0-beta1"

This is due to package managers wishing to favor final releases over
prereleases.

In a scheduler versions more often represent the earliest release all
required features/APIs are available in a system. Whether the constraint
or the version being evaluated are prereleases has no impact on
ordering.

This commit adds a new constraint - `semver` - which will use Semver
v2.0 ordering when evaluating constraints. Given the above examples:

- 1.3.0-beta1 satisfies ">= 0.6.1" using `semver`
- 1.7.0-rc1 satisfies ">= 1.6.0-beta1" using `semver`

Since existing jobspecs may rely on the old behavior, a new constraint
was added and the implicit Consul Connect and Vault constraints were
updated to use it.
2019-11-19 08:40:19 -08:00
..
2017-10-13 14:36:02 -07:00
2017-10-13 13:12:20 -07:00
2017-10-13 13:12:20 -07:00
2019-11-05 09:51:55 -05:00
2017-07-21 16:33:04 -07:00
2019-11-19 08:40:19 -08:00
2018-05-31 10:57:08 -07:00
2019-11-12 11:02:33 -05:00
2019-11-12 11:02:33 -05:00
2019-11-07 08:35:39 -05:00
2017-09-19 10:08:23 -05:00
2017-10-13 14:36:02 -07:00
2018-09-04 16:03:52 -07:00
2017-10-13 14:36:02 -07:00
2017-10-13 14:36:02 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-07-21 16:33:04 -07:00
2016-03-17 16:04:09 -07:00
2017-07-21 16:33:04 -07:00
2019-01-18 15:31:31 -05:00
2019-01-30 12:23:14 -08:00