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
pradykaushik commented 2019-11-23 01:17:47 +00:00 (Migrated from github.com)

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.

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.
ridv (Migrated from github.com) approved these changes 2019-11-25 22:54:11 +00:00
@ -58,0 +67,4 @@
return tasks, err
}
}
ridv (Migrated from github.com) commented 2019-11-25 22:46:17 +00:00

Awesome idea

Awesome idea
ridv (Migrated from github.com) commented 2019-11-25 22:54:02 +00:00

Do we need to keep this around?

Do we need to keep this around?
pradykaushik (Migrated from github.com) reviewed 2019-11-26 07:59:30 +00:00
pradykaushik (Migrated from github.com) commented 2019-11-26 07:59:30 +00:00

Yeah, the example might be an overkill. I'll get rid of it.

Yeah, the example might be an overkill. I'll get rid of it.
This repository is archived. You cannot comment on pull requests.
No description provided.