Chris Baker
5979d6a81e
more testing for ScalingPolicy, mainly around parsing and canonicalization for Min/Max
2020-03-24 19:43:50 +00:00
Chris Baker
f6ec5f9624
made count optional during job scaling actions
...
added ACL protection in Job.Scale
in Job.Scale, only perform a Job.Register if the Count was non-nil
2020-03-24 14:39:05 +00:00
Chris Baker
233db5258a
changes to Canonicalize, Validate, and api->struct conversion so that tg.Count, tg.Scaling.Min/Max are well-defined with reasonable defaults.
...
- tg.Count defaults to tg.Scaling.Min if present (falls back on previous default of 1 if Scaling is absent)
- Validate() enforces tg.Scaling.Min <= tg.Count <= tg.Scaling.Max
modification in ApiScalingPolicyToStructs, api.TaskGroup.Validate so that defaults are handled for TaskGroup.Count and
2020-03-24 13:57:17 +00:00
Chris Baker
5373d503c7
scaling api: put api.* objects in agreement with structs.* objects
2020-03-24 13:57:16 +00:00
Chris Baker
00092a6c29
fixed http endpoints for job.register and job.scalestatus
2020-03-24 13:57:16 +00:00
Chris Baker
925b59e1d2
wip: scaling status return, almost done
2020-03-24 13:57:15 +00:00
Chris Baker
42270d862c
wip: some tests still failing
...
updating job scaling endpoints to match RFC, cleaning up the API object as well
2020-03-24 13:57:14 +00:00
Chris Baker
abc7a52f56
finished refactoring state store, schema, etc
2020-03-24 13:57:14 +00:00
Luiz Aoqui
c74c01a643
wip: add scaling policies methods to the client
2020-03-24 13:57:12 +00:00
Chris Baker
3d54f1feba
wip: added Enabled to ScalingPolicyListStub, removed JobID from body of scaling request
2020-03-24 13:57:12 +00:00
Chris Baker
84953a1ed7
wip: remove PolicyOverride from scaling request
2020-03-24 13:57:11 +00:00
Chris Baker
1c5c2eb71b
wip: add GET endpoint for job group scaling target
2020-03-24 13:57:10 +00:00
Chris Baker
8453e667c2
wip: working on job group scaling endpoint
2020-03-24 13:55:20 +00:00