workload validation before registering elektron. #19

Merged
pradykaushik merged 2 commits from issues/issue-18-workload-validation into master 2019-11-26 08:08:12 +00:00

2 commits

Author SHA1 Message Date
Pradyumna Kaushik
f84f9ff5dc removed unwanted validator example comment. 2019-11-26 03:06:02 -05:00
Pradyumna Kaushik
bbaa266057 workload validation before registering elektron.
Added a utility to help with validating structs. This utility accepts
validators and runs them. If any of the validators fail, then the
error is wrapped with a given base message and returned.

Added validators for checking different attributes of a task
definition.

Added test code to test task validators.

Retrofitted scheduler.go to just log the task validation error and
terminate. If task validation does not report any error, then the
tasks are provided to the scheduler and elektron registers itself
with Mesos.
2019-11-22 20:10:01 -05:00