Clayton Coleman
181dc7c64c
Update thirdpartyresourcecodec with new Decoder
2016-01-22 13:27:25 -05:00
Chao Xu
a248d1117b
remove ResourceVersion validation in client
2016-01-22 10:14:39 -08:00
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
Alex Mohr
1ab41d5238
Merge pull request #16509 from miminar/namespace_field_conv
...
Add missing field label conversions for Namespace
2016-01-21 10:27:02 -08:00
Alex Mohr
d2d349bc84
Merge pull request #19334 from resouer/network
...
Networking should be used to hold network related pkgs
2016-01-21 10:26:13 -08:00
Madhusudan.C.S
bd3b476bbf
Update types, add defaulting code, conversions and validation.
2016-01-20 10:44:19 -08:00
Harry Zhang
936a11e775
Use networking to hold network related pkgs
...
Change names of unclear methods
Use net as pkg name for short
2016-01-15 13:46:16 +08:00
Michal Minar
3188e123a9
Add missing field label conversions
...
Added missing field labels conversion functions for kinds:
- ConfigMap
- DaemonSet
- Deployment
- Endpoints
- Event
- Ingress
- Job
- PersistentVolume
- PersistentVolumeClaim
- ResourceQuota
- Secret
- Service
Completed conversion functions of few other kinds:
- Namespace
- ServiceAccount
Added tests suite for the above.
Signed-off-by: Michal Minar <miminar@redhat.com>
2016-01-14 10:00:45 +01:00
k8s-merge-robot
0df7e695d4
Merge pull request #19458 from davidopp/notsclose
...
Auto commit by PR queue bot
2016-01-12 13:53:13 -08:00
k8s-merge-robot
9b106c6e6d
Merge pull request #18058 from mqliang/httpProbe
...
Auto commit by PR queue bot
2016-01-11 23:21:01 -08:00
David Oppenheimer
8ac484793d
Comment out calls to httptest.Server.Close() to work around
...
https://github.com/golang/go/issues/12262 . See #19254 for
more details. This change should be reverted when we upgrade
to Go 1.6.
2016-01-11 23:02:11 -08:00
Brendan Burns
79533385cf
Add kind to APIResource
2016-01-07 22:27:34 -08:00
Wojciech Tyczynski
8dc83547b0
Close watch in generic etcd_test
2015-12-28 11:43:20 +01:00
k8s-merge-robot
21c01c05e3
Merge pull request #18902 from deads2k/gv-partial
...
Auto commit by PR queue bot
2015-12-24 01:42:59 -08:00
Wojciech Tyczynski
e108a32b08
Merge pull request #18655 from wojtek-t/versioned_list_options_in_server
...
Switch to versioned ListOptions in server.
2015-12-22 10:57:09 +01:00
Wojciech Tyczynski
2b8854ba28
Close watchers in tests
2015-12-22 09:54:05 +01:00
deads2k
20f9c2c545
find partial resource matches
2015-12-21 09:26:06 -05:00
Wojciech Tyczynski
58336829be
Switch to versioned ListOptions in server.
2015-12-21 14:23:37 +01:00
Abhishek Shah
6f63875165
Reverting 18442
2015-12-17 16:57:29 -08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
k8s-merge-robot
5c4479f542
Merge pull request #18442 from deads2k/gv-restmapper-10
...
Auto commit by PR queue bot
2015-12-17 06:06:43 -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
Brendan Burns
a60069b300
Add a server side export facility
2015-12-16 19:42:08 -08:00
Tamer Tas
c798a6ef01
ConfigMap resource and its REST implementation
2015-12-16 11:19:26 -05:00
deads2k
41b78ad2b6
find partial resource matches
2015-12-16 10:19:31 -05:00
Clayton Coleman
8f203a28f1
Change runtime.Object signature
2015-12-15 13:36:25 -05:00
mqliang
04763abbbb
remove TODO:binding validation
2015-12-15 14:47:55 +08:00
deads2k
d0aaf13920
use constants for group names
2015-12-14 10:04:10 -05:00
k8s-merge-robot
266ab4a796
Merge pull request #18487 from smarterclayton/guard_encode_decode
...
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
k8s-merge-robot
c458cd7bb7
Merge pull request #18379 from deads2k/gv-newobject
...
Auto commit by PR queue bot
2015-12-13 13:33:16 -08:00
Jeff Lowdermilk
f6686ba3a4
Merge pull request #18290 from wojtek-t/fast_namespace_deletion
...
Support collection deletion in apiserver.
2015-12-11 13:34:56 -08:00
Tim Hockin
872faffdac
Internal errors are internal
2015-12-10 11:48:19 -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
k8s-merge-robot
0bf11d89cf
Merge pull request #18277 from wojtek-t/better_traces
...
Auto commit by PR queue bot
2015-12-10 09:56:13 -08:00
Timothy St. Clair
a428246960
Abstract the error handling for the storage layer to eliminate the
...
direct etcd dependency.
2015-12-10 08:06:19 -06:00
k8s-merge-robot
815fcc3334
Merge pull request #18131 from brendandburns/3rdparty
...
Auto commit by PR queue bot
2015-12-10 04:10:44 -08:00
Wojciech Tyczynski
f28bb68d8c
Support collection deletion in apiserver.
2015-12-10 09:46:25 +01:00
Clayton Coleman
1e21054134
Hide common codec methods under helpers
...
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
Wojciech Tyczynski
0369805308
Merge pull request #18207 from wojtek-t/string_resource_version
...
Change resourceVersion to string in storage.Interface
2015-12-09 15:00:54 +01:00
deads2k
519b4e80d1
update NewObject for groupversionkind
2015-12-09 08:13:15 -05:00
Brendan Burns
9574a4b782
Switch to KindToResource for ThirdPartyResourceData
2015-12-07 12:54:41 -08:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
Wojciech Tyczynski
793da62c7f
Change resourceVersion to string in storage.Interface
2015-12-07 09:22:59 +01:00
Wojciech Tyczynski
788218d7bb
Better traces for api calls.
2015-12-07 09:15:54 +01:00
k8s-merge-robot
8e496e3fa3
Merge pull request #18015 from wojtek-t/list_traces
...
Auto commit by PR queue bot
2015-12-05 22:10:01 -08:00
Salvatore Dario Minonne
80575c3093
renaming PodSelector to LabelSelector
2015-12-04 09:49:08 +01:00
k8s-merge-robot
a5100ef057
Merge pull request #17248 from thockin/airplane_validation_pt4
...
Auto commit by PR queue bot
2015-12-03 16:59:23 -08:00
k8s-merge-robot
c849825d18
Merge pull request #16400 from caesarxuchao/fix-proxy-content-length
...
Auto commit by PR queue bot
2015-12-03 15:56:03 -08: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
k8s-merge-robot
c5924d20a5
Merge pull request #17817 from mqliang/eventtype
...
Auto commit by PR queue bot
2015-12-03 05:55:46 -08:00
Wojciech Tyczynski
0736d5c893
Better traces in list operations.
2015-12-03 09:16:37 +01:00
k8s-merge-robot
1a750b95e6
Merge pull request #17892 from mqliang/parallizeHealthCheck
...
Auto commit by PR queue bot
2015-12-02 16:16:09 -08:00
gmarek
459131fd92
Use KubeletPort reported in NodeStatus instead of cluster-wide master config, take 2.
2015-12-02 13:38:17 +01:00
mqliang
149af2f7a7
remove todo
2015-12-02 13:04:59 +08:00
mqliang
70cce2847a
remove TODO:parallize health check
2015-12-02 09:51:13 +08:00
mqliang
9ff765978a
add filedselector for Event
2015-12-01 23:02:48 +08:00
k8s-merge-robot
a836b1e261
Merge pull request #17326 from caesarxuchao/grooupVersion-lastest
...
Auto commit by PR queue bot
2015-12-01 05:05:40 -08:00
Chao Xu
6e192760e3
refactoring latest.go GroupVersion;
...
clean up latest.go GroupVersions;
remove latest.GroupMeta.Group;
remove latest.GroupMeta.Version.
2015-11-30 11:30:21 -08:00
k8s-merge-robot
63dc126739
Merge pull request #17886 from fabianofranz/pod_logs_validate_container
...
Auto commit by PR queue bot
2015-11-30 05:25:20 -08:00
k8s-merge-robot
140df5f809
Merge pull request #17220 from kargakis/kubectl-scale-deployments
...
Auto commit by PR queue bot
2015-11-30 04:19:58 -08:00
Fabiano Franz
afd56495a1
Pod log location must validate container if provided
2015-11-29 23:20:01 -02:00
mqliang
793cc14c68
remove unnecessary fmt.Printf()
2015-11-26 15:37:32 +08:00
deads2k
8679925847
update RESTMapping API to be properly typed
2015-11-25 14:02:37 -05:00
deads2k
5c4fb5bcbe
make RESTMapper.KindFor
2015-11-25 14:02:37 -05:00
deads2k
6231404682
update decoder to use GroupVersion
2015-11-25 12:14:06 -05:00
k8s-merge-robot
e95e3dec42
Merge pull request #17414 from timstclair/apiserver
...
Auto commit by PR queue bot
2015-11-25 05:28:07 -08:00
Michail Kargakis
99fc35880b
kubectl: Support scaling deployments
...
This commit adds support for using kubectl scale to scale deployments. Makes use of the
deployments/scale endpoint instead of updating deployment.spec.replicas directly.
2015-11-25 11:26:40 +01:00
k8s-merge-robot
431c67710b
Merge pull request #17247 from thockin/airplane_validation_pt3
...
Auto commit by PR queue bot
2015-11-24 18:37:09 -08:00
Wojciech Tyczynski
bf13bef955
Use unversioned.ListOptions in API server.
2015-11-24 14:42:21 +01:00
Tim St. Clair
20ead45af9
Move etcd_util.go to separate package
2015-11-23 11:32:50 -08:00
Tim Hockin
ceee678b29
Rename validation 'New' funcs
2015-11-23 10:01:43 -08:00
Jordan Liggitt
9da769f90d
Match service ports when proxying to services
2015-11-23 10:40:23 -05:00
Tim Hockin
48b49a5cae
s/ValidationErrorList/ErrorList/
2015-11-22 20:13:20 -08:00
Tim Hockin
0ff66da346
Move fielderrors into validation
2015-11-22 20:12:20 -08:00
k8s-merge-robot
4dbf7c637c
Merge pull request #17163 from wojtek-t/extend_decoder
...
Auto commit by PR queue bot
2015-11-21 08:37:29 -08:00
Chao Xu
32f2ec71a8
Based on @tiran's patch: copy the request ContentLength and TransferEncoding field in proxy
...
@liggitt: Update proxy content-length tests; Copy content-length in generic rest proxy.
2015-11-20 09:57:47 -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
Timothy St. Clair
02851dd1b7
Removal of fakeClient and shift to storage.Interface for
...
all registry tests.
2015-11-19 10:34:30 -06: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
Wojciech Tyczynski
d7b098b0e9
Add DecodeParametersInto method to Codec.
2015-11-18 09:56:04 +01: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
k8s-merge-robot
89d7309c88
Merge pull request #16256 from mikedanese/daemon-gls
...
Auto commit by PR queue bot
2015-11-16 07:59:28 -08:00
k8s-merge-robot
961a02a602
Merge pull request #17204 from thockin/airplane-rest-canonicalize
...
Auto commit by PR queue bot
2015-11-13 18:17:18 -08:00
Mike Danese
7a7f31ead1
move daemonset to generalized label selector
2015-11-13 10:31:50 -08:00
Wojciech Tyczynski
a5a8717539
Pass versioner to cacher.
2015-11-13 08:35:28 +01:00
Tim Hockin
35ab5c6234
Add a REST hook for post-validation canonicalize
...
This is a simple hook that only Endpoints uses for now.
2015-11-12 21:13:16 -08:00
Wojciech Tyczynski
3df5d1dbc3
Move storage-related dirs under pkg/storage.
2015-11-12 19:49:32 +01:00
k8s-merge-robot
447fe209ab
Merge pull request #17007 from zhengguoyong/fun_order_consistent
...
Auto commit by PR queue bot
2015-11-10 07:11:16 -08:00
eulerzgy
501c2825cf
Make order of fun consistent
2015-11-10 17:43:54 +08:00
k8s-merge-robot
01fbe64a34
Merge pull request #16777 from zhengguoyong/add_log_warning2
...
Auto commit by PR queue bot
2015-11-09 06:37:39 -08:00
k8s-merge-robot
0abc12ce5a
Merge pull request #16876 from hongchaodeng/fix-16721
...
Auto commit by PR queue bot
2015-11-07 07:31:15 -08:00
k8s-merge-robot
6b7115067d
Merge pull request #16807 from smarterclayton/server_backpressure_on_etcd_down
...
Auto commit by PR queue bot
2015-11-05 21:19:30 -08:00
Hongchao Deng
056536ff83
component status: nil error should return empty string
...
If error is nil, it should return empty string instead of \"nil\".
JSON marshalling will omit empty error in such case.
2015-11-05 18:44:28 -08:00
k8s-merge-robot
5156b93a35
Merge pull request #16576 from hurf/mv_minions
...
Auto commit by PR queue bot
2015-11-05 17:15:17 -08:00
Timothy St. Clair
f6f2f41ab3
Removal of fakeClient from registry/generic/etcd/etcd_test.go in leiu of
...
NewEtcdTestClientServer
2015-11-05 08:28:58 -06:00
k8s-merge-robot
0089235bab
Merge pull request #16776 from feihujiang/moveSubresourcesOfPodToRestPackage
...
Auto commit by PR queue bot
2015-11-04 21:57:31 -08:00
Clayton Coleman
3da15535b6
Provide backpressure to clients when etcd goes down
...
When etcd is down today we don't specifically handle the error involved,
which means clients get a generic 500 error. This commit adds a formal
error type internally for both WatchExpired and EtcdUnreachable, and
then converts them to api/errors before returning to the client. It also
upgrades the client to retry on any 429 or 5xx error that has a
Retry-After header, instead of just 429.
In combination, this allows the apiserver to exert backpressure on
controllers that are hotlooping. Picked 2 seconds by default, but we
could potentially ramp that up even further in a future iteration.
2015-11-04 16:05:12 -05:00
k8s-merge-robot
2842d9476b
Merge pull request #16496 from wojtek-t/switch_cacher_for_other_resources
...
Auto commit by PR queue bot
2015-11-04 03:01:24 -08:00
eulerzgy
287b9e8978
Add warning log
2015-11-04 10:55:43 +08:00
feihujiang
c39faf19f3
Move rest handler of subresources of pod to rest package
2015-11-04 10:23:49 +08:00
Jordan Liggitt
b3157d1445
Ensure HPA has valid resource/name/subresource, validate path segments
2015-11-03 14:46:17 -05:00
Wojciech Tyczynski
030a272db5
Enable cacher for all resources.
2015-11-03 11:55:37 +01:00
k8s-merge-robot
b79379516f
Merge pull request #16584 from wojtek-t/refactor_use_cacher
...
Auto commit by PR queue bot
2015-11-03 01:10:13 -08:00
k8s-merge-robot
990c0184be
Merge pull request #16330 from mikedanese/deploy-ptr
...
Auto commit by PR queue bot
2015-11-02 20:41:34 -08:00
Wojciech Tyczynski
8f385c563f
Refactor code for creating Cacher.
2015-11-02 20:56:46 +01:00
feihujiang
3603b14977
Move service strategy to registry/service package
2015-11-02 19:56:03 +08:00
feihujiang
726def04d5
Make rootscoped resource no namespace selectable field
2015-10-31 10:52:21 +08:00
k8s-merge-robot
cc53619372
Merge pull request #15791 from abutcher/set-service
...
Auto commit by PR queue bot
2015-10-30 06:55:16 -07:00
hurf
3d7dd82bf6
Clean trace of "Minion"
...
Trivial change, remove "minion" in message.
2015-10-30 14:35:08 +08:00
Andrew Butcher
0c4aafaf1e
Update master service ports and type via controller.
2015-10-29 10:56:46 -04:00
Wojciech Tyczynski
9c53f301f1
Merge selectors with ListOptions.
2015-10-29 15:42:57 +01:00
k8s-merge-robot
d5be3635e5
Merge pull request #16273 from wojtek-t/list_options_in_api
...
Auto commit by PR queue bot
2015-10-29 01:57:29 -07:00
Deyuan Deng
638411d744
Wait apiserver in controller manager startup process
2015-10-29 00:15:33 +08:00
Mike Danese
b0a41108af
move deployment PodTemplate to be not a pointer
2015-10-28 00:13:40 -07:00
Wojciech Tyczynski
aa30e38183
Pass resource version to storage List operation.
2015-10-27 10:03:58 +01:00
Mike Danese
8acf01d620
add status subresource for deployment
2015-10-26 00:12:58 -07:00
Janet Kuo
54b743bc05
Change resource "ingress" to "ingresses" in URL path and kubectl
2015-10-25 16:54:25 -07:00
k8s-merge-robot
33dabe00a8
Merge pull request #15766 from feihujiang/supportNamespaceSelectorInAllNamespacesEndpoint
...
Auto commit by PR queue bot
2015-10-24 17:08:34 -07:00
feihujiang
501c76cebb
Support namespace selector in all namespaces endpoint
2015-10-23 14:14:38 +08:00
Saad Ali
76c5e0e553
Revert "Use KubeletPort reported in NodeStatus instead of cluster-wide master config"
2015-10-22 21:25:38 -07:00
k8s-merge-robot
a6b8e112ac
Merge pull request #12919 from gmarek/use_api_ports
...
Auto commit by PR queue bot
2015-10-22 19:53:41 -07:00
Saad Ali
a47a790356
Merge pull request #15900 from mikedanese/graceterm-1
...
don't gracefully delete terminated pods
2015-10-22 12:37:43 -07:00
Jordan Liggitt
63fb6c07a5
Validate names in BeforeCreate
2015-10-21 14:11:41 -04:00
k8s-merge-robot
a5a917603c
Merge pull request #15837 from feihujiang/removeUselessCodesAboutMinion
...
Auto commit by PR queue bot
2015-10-21 09:05:46 -07:00
gmarek
6d6cd8e46a
Use KubeletPort reporeted in NodeStatus instead of cluster-wide master config.
2015-10-21 17:19:31 +02:00
k8s-merge-robot
b02b5b9f87
Merge pull request #15460 from feihujiang/refactoringRegistryPodDirectory
...
Auto commit by PR queue bot
2015-10-20 14:40:21 -07:00
Mike Danese
ac686d7536
don't gracefully delete terminated pods
2015-10-20 09:31:20 -07:00
Steve Milner
8da2d4002f
Fixes remaining imports per #15319
2015-10-20 07:13:13 -04:00
Deyuan Deng
151e4b7cb8
Search for port number for service locator
2015-10-19 21:22:59 +08:00
feihujiang
a456b4c424
Remove useless codes about Minion kind
2015-10-19 19:29:45 +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
a7a54cac74
move job to generalized label selector
2015-10-15 07:42:58 -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
k8s-merge-robot
8c753c84eb
Merge pull request #15191 from caesarxuchao/validate-UID
...
Auto commit by PR queue bot
2015-10-15 04:20:24 -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
be0754750f
add common fields validation before updaing a resource; make the repair of malformed update request flippable by a flag.
2015-10-13 16:28:32 -07:00
Clayton Coleman
d4cdabf2fc
Connect should be passed a Responder interface
...
For connect handlers that need to respond with a structured error or
structured object, pass an interface that hides the details of writing
an object to the response (error or runtime.Object).
Example use case:
Connect handler that accepts a body input stream, which it streams to a
pod, and then returns a structured object with info about the pod it
just created.
2015-10-13 15:05:14 -04:00
Dawn Chen
0901e5050d
Merge pull request #15371 from timothysc/etcd-contexts
...
New etcd client modifications part 1 (context support)
2015-10-12 16:04:13 -07:00
feihujiang
04aca8489f
Move LogREST into pod/rest package
2015-10-13 06:10:21 +08:00
Dawn Chen
2dd5b2b1d9
Merge pull request #14579 from derekwaynecarr/testing_rc_strategy
...
Add testing to ReplicationController strategy
2015-10-12 14:43:36 -07:00
Dawn Chen
782102d437
Merge pull request #15224 from liggitt/proxy_https
...
Allow specifying scheme when proxying
2015-10-12 14:39:21 -07:00
Dawn Chen
d6ee649cb8
Merge pull request #13722 from feihujiang/returnHttpErrorStatusWhenRetriveErrorStatus
...
APIServer should return error status
2015-10-12 11:42:53 -07:00
derekwaynecarr
3c012db30f
Add status subresource to HorizontalPodAutoscaler
2015-10-12 11:27:56 -04:00
Jordan Liggitt
1043126135
Refactor SSH tunneling, fix proxy transport TLS/Dial extraction
2015-10-12 11:17:01 -04:00
Jordan Liggitt
826459e51e
Allow specifying scheme when proxying
2015-10-12 11:16:53 -04:00
derekwaynecarr
22dd92f626
Add testing to ReplicationController strategy
2015-10-12 11:01:33 -04:00
Timothy St. Clair
2a2a2d79ff
New etcd client modifications part 1 (context support)
...
This commit plumbs contexts which are needed for the new client.
2015-10-12 08:45:49 -05:00