open-nomad/scheduler
Danielle Tomlinson e5c641daa9 scheduler: Allow comparisons of nil values
This commit allows the ConstraintChecker to test values that do not exist.
This is useful when wanting to _exclude_ given nodes from executing a
job, for example, if you wanted to give canary nodes an attribute, and
not run critical services on them, you may specify something like the
below, but not want to tag all other nodes with the inverse.

```hcl
constraint {
  attribute = "${node.attr.canary}
  operator = "!="
  value = "1"
}
```

This also requires all constraint checkers to allow for nil target
values, as they will no longer be short circuited by resolving a target.
2018-11-13 13:36:51 -08:00
..
annotate.go
annotate_test.go
context.go Merge pull request #4867 from hashicorp/b-deployment-progress-deadline 2018-11-13 10:29:03 -08:00
context_test.go Merge pull request #4867 from hashicorp/b-deployment-progress-deadline 2018-11-13 10:29:03 -08:00
device.go blank line 2018-11-12 15:50:14 -06:00
device_test.go Fix logic bug in tracking sum of matched affinity weights 2018-11-12 15:06:45 -06:00
feasible.go scheduler: Allow comparisons of nil values 2018-11-13 13:36:51 -08:00
feasible_test.go scheduler: Allow comparisons of nil values 2018-11-13 13:36:51 -08:00
generic_sched.go More style and readablity fixes from review 2018-10-30 11:06:32 -05:00
generic_sched_test.go renames 2018-10-04 14:57:25 -07:00
preemption.go update preemption tests to use new node resource structs 2018-11-02 17:59:53 -05:00
preemption_test.go update preemption tests to use new node resource structs 2018-11-02 17:59:53 -05:00
propertyset.go server 2018-09-15 16:23:13 -07:00
rank.go Normalize scores correctly 2018-11-08 17:01:58 -06:00
rank_test.go Fixes device scheduling unit tests 2018-11-08 10:31:19 -06:00
reconcile.go Fix bug in reconciler where terminal allocs on a job already stopped were unnecessarily updated 2018-10-08 21:03:49 -05:00
reconcile_test.go use int64 2018-10-16 15:34:32 -07:00
reconcile_util.go
reconcile_util_test.go
scheduler.go Use scheduler config from state store to enable/disable preemption 2018-10-30 11:06:32 -05:00
scheduler_oss.go
select.go Implement affinity support in generic scheduler 2018-09-04 16:10:11 -05:00
select_test.go Implement affinity support in generic scheduler 2018-09-04 16:10:11 -05:00
spread.go server 2018-09-15 16:23:13 -07:00
spread_test.go Fix scoring logic for uneven spread to incorporate current alloc count 2018-09-04 16:10:11 -05:00
stack.go Make preemption config a struct to allow for enabling based on scheduler type 2018-10-30 11:06:32 -05:00
stack_not_ent.go
stack_test.go renames 2018-10-04 14:57:25 -07:00
system_sched.go More style and readablity fixes from review 2018-10-30 11:06:32 -05:00
system_sched_test.go fix end to end scheduler test to use new resource structs correctly 2018-10-30 11:06:32 -05:00
testing.go More review comments 2018-11-01 16:36:11 -05:00
util.go use int64 2018-10-16 15:34:32 -07:00
util_test.go add to stack 2018-10-13 12:27:49 -07:00