Tim Hockin
708fda2683
field paths are JSON-style
2015-12-31 15:37:12 -08:00
k8s-merge-robot
fec5206f1a
Merge pull request #13840 from nelcy/master
...
Auto commit by PR queue bot
2015-12-28 23:55:32 -08:00
Chakravarthy Nelluri
fa76de79e5
Add support for flex volume. Flex volume adds support for thirdparty(vendor)
...
volumes and custom mounts.
2015-12-23 14:11:38 -08:00
deads2k
d41e7ecf53
miscellaneous group version updates
2015-12-21 09:52:50 -05:00
k8s-merge-robot
c1b182694b
Merge pull request #18461 from mesosphere/sttts-fix-event-error-message
...
Auto commit by PR queue bot
2015-12-19 05:57:24 -08:00
Dr. Stefan Schimanski
a66b9cd8de
Fix ValidateEvent error message
2015-12-19 12:14:54 +01:00
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
k8s-merge-robot
5ac7f31064
Merge pull request #18508 from mqliang/bindingValidation
...
Auto commit by PR queue bot
2015-12-17 03:22:18 -08:00
k8s-merge-robot
114f6f76dc
Merge pull request #18412 from resouer/fix-validation
...
Auto commit by PR queue bot
2015-12-15 08:15:27 -08:00
k8s-merge-robot
f6466b0852
Merge pull request #18462 from wojtek-t/fix_node_events
...
Auto commit by PR queue bot
2015-12-15 06:05:28 -08:00
mqliang
04763abbbb
remove TODO:binding validation
2015-12-15 14:47:55 +08:00
harry
d94945c179
Fix empty string check inconsistency in validation.go
2015-12-13 00:11:56 +08:00
Tim Hockin
7fb8f60735
Shorten names for better reading
2015-12-10 11:48:19 -08:00
Tim Hockin
87a35047dd
Move FieldPath and errors to a sub-package
...
This makes the naming and reading a lot simpler.
2015-12-10 11:48:16 -08:00
Wojciech Tyczynski
2ef5e320db
Fix node events
2015-12-10 09:52:33 +01:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
Jordan Liggitt
7d10fd3591
Validate pod spec.nodeName
2015-12-05 11:34:09 -05: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
Marek Grabowski
813a4c9d19
Merge pull request #17819 from mqliang/eventValidate
...
remove TODO: There is no namespace required for node.
2015-12-03 09:22:06 +01:00
mqliang
8547a5c1ae
remove TODO: validate namespace
2015-12-03 08:56:17 +08:00
k8s-merge-robot
b3846ea748
Merge pull request #17862 from feihujiang/ensureHeadlessServicePortEqualToTargetPort
...
Auto commit by PR queue bot
2015-12-02 03:35:36 -08:00
Harry Zhang
70a9c0bf56
Add directory in GitRepo and updated tests.
...
Update validate and gitRepo
Update generated code
2015-12-02 00:20:38 +08:00
feihujiang
81b095ee52
Ensure headless service port equal to targetPort
2015-12-01 14:37:26 +08:00
Clayton Coleman
1d592e4c28
Unversioned types should not use ambiguous go-int
...
All external types that are not int64 are now marked as int32,
including
IntOrString. Prober is now int32 (43 years should be enough of an initial
probe time for anyone).
Did not change the metadata fields for now.
2015-11-26 11:45:25 -05:00
Tim Hockin
ceee678b29
Rename validation 'New' funcs
2015-11-23 10:01:43 -08:00
Tim Hockin
682f2a5a79
Stronger typing for validation ErrorList
2015-11-23 10:01:43 -08:00
Tim Hockin
f8ad75df44
Clarify invalid vs not-supported
2015-11-23 08:07:17 -08:00
Tim Hockin
48b49a5cae
s/ValidationErrorList/ErrorList/
2015-11-22 20:13:20 -08:00
Tim Hockin
d64d1fbb3d
s/ValidationError/Error/
2015-11-22 20:12:46 -08:00
Tim Hockin
2a127d089a
s/ValidationErrorType/ErrorType/
2015-11-22 20:12:39 -08:00
Tim Hockin
0ff66da346
Move fielderrors into validation
2015-11-22 20:12:20 -08: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
eulerzgy
501c2825cf
Make order of fun consistent
2015-11-10 17:43:54 +08:00
k8s-merge-robot
4e39dd4b7d
Merge pull request #16925 from mikedanese/headless-fix-1
...
Auto commit by PR queue bot
2015-11-07 08:03:18 -08:00
Tim St. Clair
1e88a682da
Add liveness/readiness probe parameters
...
- PeriodSeconds - How often to probe
- SuccessThreshold - Number of successful probes to go from failure to success state
- FailureThreshold - Number of failing probes to go from success to failure state
This commit includes to changes in behavior:
1. InitialDelaySeconds now defaults to 10 seconds, rather than the
kubelet sync interval (although that also defaults to 10 seconds).
2. Prober only retries on probe error, not failure. To compensate, the
default FailureThreshold is set to the maxRetries, 3.
2015-11-06 10:46:40 -08:00
Mike Danese
09295cd664
Headless services should not need to declare ports
2015-11-06 09:57:41 -08:00
Jordan Liggitt
b3157d1445
Ensure HPA has valid resource/name/subresource, validate path segments
2015-11-03 14:46:17 -05:00
feihujiang
f7bfb04665
Add a comment that not return an error for rootscoped resources with namesapce
2015-11-03 11:00:01 +08:00
mqliang
ce384e62ed
fix conflict after rebase
2015-10-23 14:28:09 +08:00
mqliang
57faaf4f96
refactor validation.go to avoid duplicating
2015-10-23 14:23:55 +08:00
Filip Grzadkowski
8e07d2fc93
Merge pull request #15975 from liggitt/validate_before_create
...
Validate ObjectMeta in BeforeCreate
2015-10-22 14:47:40 +02:00
Janet Kuo
e36121ae9b
Increase the annotation size limit to 256k
2015-10-21 16:16:55 -07:00
Jordan Liggitt
63fb6c07a5
Validate names in BeforeCreate
2015-10-21 14:11:41 -04:00
mqliang
b6be9b9684
use string constant instead of duplicating
2015-10-19 22:00:41 +08:00
eulerzgy
f8f9afb874
alias local packagename for pkg/util/errors
2015-10-18 09:37:46 +08:00
k8s-merge-robot
72235d6607
Merge pull request #15709 from derekwaynecarr/ingress_status
...
Auto commit by PR queue bot
2015-10-17 00:40:35 -07:00
k8s-merge-robot
f5afa634ff
Merge pull request #15574 from derekwaynecarr/resource_quota_fractional
...
Auto commit by PR queue bot
2015-10-16 07:38:26 -07:00
derekwaynecarr
65efc784cb
Fix error message in validate load balancer status
2015-10-15 11:06:41 -04:00