Tim Hockin
0fecf965b4
Change how one-of blocks are validated
...
I took a hard look at error output and played until I was happier. This now
prints JSON for structs in the error, rather than go's format.
Also made the error message easier to read.
Fixed tests.
2015-12-18 09:42:14 -08:00
Tim Hockin
43ed74748e
Clean up and document validation strings
...
Also add a detail string for Required and Forbidden. Fix tests.
2015-12-18 09:40:50 -08:00
Tim Hockin
27fc14000d
audit validation errors to not double-print field names
2015-12-18 09:06:02 -08:00
Maciej Szulik
327c104460
Added ActiveDeadlineSeconds to jobs, allowing failing a job after
...
exceeding allowed time.
2015-12-17 15:26:42 +01:00
Tamer Tas
c798a6ef01
ConfigMap resource and its REST implementation
2015-12-16 11:19:26 -05:00
Salvatore Dario Minonne
80575c3093
renaming PodSelector to LabelSelector
2015-12-04 09:49:08 +01:00
Tim Hockin
e6df0b1a24
Convert validation to use FieldPath
...
Before this change we have a mish-mash of ways to pass field names around for
error generation. Sometimes string fieldnames, sometimes .Prefix(), sometimes
neither, often wrong names or not indexed when it should be.
Instead of that mess, this is part one of a couple of commits that will make it
more strongly typed and hopefully encourage correct behavior. At least you
will have to think about field names, which is better than nothing.
It turned out to be really hard to do this incrementally.
2015-12-03 08:19:44 -08:00
Tim Hockin
682f2a5a79
Stronger typing for validation ErrorList
2015-11-23 10:01:43 -08:00
Tim Hockin
d64d1fbb3d
s/ValidationError/Error/
2015-11-22 20:12:46 -08:00
Tim Hockin
0ff66da346
Move fielderrors into validation
2015-11-22 20:12:20 -08:00
Wojciech Tyczynski
8594c20333
Merge pull request #16677 from DirectXMan12/feature/add-scale-validator
...
[WIP] Add Validators for Scale Objects
2015-11-20 12:03:45 +01:00
Solly Ross
e5ef9e1406
Add Validators for Scale Objects
...
This commit introduces a validator for use with Scale updates.
The validator checks that we have > 0 replica count, as well
as the normal ObjectMeta checks (some of which have to be
faked since they don't exist on the Scale object).
2015-11-18 13:53:56 -05:00
Tim Hockin
ba383bcfeb
Refactor IntOrString into a new pkg
...
pkg/util/intstr is a cleaner encapsulation for this type and supporting
functions. No behavioral change.
2015-11-16 10:57:52 -08:00
Mike Danese
7a7f31ead1
move daemonset to generalized label selector
2015-11-13 10:31:50 -08:00
eulerzgy
501c2825cf
Make order of fun consistent
2015-11-10 17:43:54 +08:00
Jordan Liggitt
b3157d1445
Ensure HPA has valid resource/name/subresource, validate path segments
2015-11-03 14:46:17 -05:00
Mike Danese
b0a41108af
move deployment PodTemplate to be not a pointer
2015-10-28 00:13:40 -07:00
mqliang
b6f19b140e
fix validation for HorizontalPodAutoscalerSpec
2015-10-16 18:32:57 +08:00
Jerzy Szczepkowski
df732f061a
HorizontalPodAutoscaler API: removal of ResourceConsumption target, introduction of CPU request utilization & other cleanups.
2015-10-16 07:15:50 +02:00
Mike Danese
29c50cdc1a
plumb PodSelector through the api
2015-10-15 07:42:57 -07:00
k8s-merge-robot
351cc2040e
Merge pull request #15491 from derekwaynecarr/ingress_status
...
Auto commit by PR queue bot
2015-10-15 06:04:38 -07:00
derekwaynecarr
eae56c3b2d
Add status subresource to Ingress
2015-10-14 14:36:29 -04:00
Maciej Szulik
98fa29adfd
Make PodTemplateSpec for Job not a pointer, since it's a required field
2015-10-14 11:37:11 +02:00
Chao Xu
7c9f4cc42f
experimental. -> extensions.
2015-10-09 15:49:10 -07:00
Chao Xu
67f316dd19
apis/experimental->apis/extensions
2015-10-09 15:04:41 -07:00
Chao Xu
983f056514
move folders
2015-10-09 14:57:44 -07:00