k8s-merge-robot
e81663c824
Merge pull request #24006 from caesarxuchao/thirdparty-preferredversion
...
Automatic merge from submit-queue
Use the first version as thirdparty resource preferredVersion
First commit is a one-liner, which implements the server-half of #23985 .
The other two commits rearrange the test code, and add back a commented out test of thirdparty resource.
@lavalamp @nikhiljindal
2016-04-17 16:02:59 -07:00
k8s-merge-robot
2b9637da6a
Merge pull request #23945 from smarterclayton/move_reset_metrics
...
Automatic merge from submit-queue
Move /resetMetrics to DELETE /metrics
Reduces the surface area of the API server slightly and allows
downstream components to have deleteable metrics. After this change
genericapiserver will *not* have metrics unless the caller defines it
(allows different apiserver implementations to make that choice on their
own).
@wojtek-t
2016-04-17 05:58:26 -07:00
k8s-merge-robot
d44457ebaf
Merge pull request #23903 from zhouhaibing089/https-fix
...
Automatic merge from submit-queue
the component status health check should check whether the scheme of backend storage url is https or not
fix https://github.com/kubernetes/kubernetes/issues/23897 , when querying the component status of etcd (backend storage), the scheme of url is not checked and use `http` always, this commit aims to fix this.
2016-04-16 20:22:57 -07:00
Clayton Coleman
0f95b91f96
Move /resetMetrics to DELETE /metrics
...
Reduces the surface area of the API server slightly and allows
downstream components to have deleteable metrics. After this change
genericapiserver will *not* have metrics unless the caller defines it
(allows different apiserver implementations to make that choice on their
own).
2016-04-15 11:44:17 -04:00
Chao Xu
f315ffd8b1
make default thirdparty resource preferredVersion; adding back discovery tests
2016-04-12 10:09:09 -07:00
Clayton Coleman
3474911736
Implement a streaming serializer for watch
...
Changeover watch to use streaming serialization. Properly version the
watch objects. Implement simple framing for JSON and Protobuf (but not
YAML).
2016-04-11 11:22:05 -04:00
zhouhaibing089
597fdede5a
the component status health check should check whether the scheme of backend storage url is https or not
2016-04-08 07:26:27 +08:00
deads2k
e8fb35d4d8
refactor resource overrides as positive logic interface
2016-03-28 09:24:49 -04:00
goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07:00
Brendan Burns
1f5b4b8802
Address comments.
2016-03-24 15:44:31 -07:00
Brendan Burns
87a1635c93
Machine generated stuff
2016-03-22 14:41:37 -07:00
Brendan Burns
a0fcbd1495
Enable third party resources.
2016-03-21 17:02:18 -07:00
CJ Cullen
5f3929f75d
Add a SSHKey sync check to the master's healthz (when using SSHTunnels).
2016-03-17 19:14:25 -07:00
Madhusudan.C.S
fe26381c90
Support for both map-based and set-based selectors in extensions/v1beta1.Scale
...
Here are a list of changes along with an explanation of how they work:
1. Add a new string field called TargetSelector to the external version of
extensions Scale type (extensions/v1beta1.Scale). This is a serialized
version of either the map-based selector (in case of ReplicationControllers)
or the unversioned.LabelSelector struct (in case of Deployments and
ReplicaSets).
2. Change the selector field in the internal Scale type (extensions.Scale) to
unversioned.LabelSelector.
3. Add conversion functions to convert from two external selector fields to a
single internal selector field. The rules for conversion are as follows:
i. If the target resource that this scale targets supports LabelSelector
(Deployments and ReplicaSets), then serialize the LabelSelector and
store the string in the TargetSelector field in the external version
and leave the map-based Selector field as nil.
ii. If the target resource only supports a map-based selector
(ReplicationControllers), then still serialize that selector and
store the serialized string in the TargetSelector field. Also,
set the the Selector map field in the external Scale type.
iii. When converting from external to internal version, parse the
TargetSelector string into LabelSelector struct if the string isn't
empty. If it is empty, then check if the Selector map is set and just
assign that map to the MatchLabels component of the LabelSelector.
iv. When converting from internal to external version, serialize the
LabelSelector and store it in the TargetSelector field. If only
the MatchLabel component is set, then also copy that value to
the Selector map field in the external version.
4. HPA now just converts the LabelSelector field to a Selector interface
type to list the pods.
5. Scale Get and Update etcd methods for Deployments and ReplicaSets now
return extensions.Scale instead of autoscaling.Scale.
6. Consequently, SubresourceGroupVersion override and is "autoscaling"
enabled check is now removed from pkg/master/master.go
7. Other small changes to labels package, fuzzer and LabelSelector
helpers to piece this all together.
8. Add unit tests to HPA targeting Deployments and ReplicaSets.
9. Add an e2e test to HPA targeting ReplicaSets.
2016-03-09 17:54:17 -08:00
k8s-merge-robot
89c9c24987
Merge pull request #21964 from caesarxuchao/fix-thirdparty-parameter
...
Auto commit by PR queue bot
2016-03-07 00:59:17 -08:00
k8s-merge-robot
a435537e27
Merge pull request #21966 from madhusudancs/scale-deployment-replicaset
...
Auto commit by PR queue bot
2016-03-04 14:40:10 -08:00
Madhusudan.C.S
fa0794098f
Define etcd storage methods for replicationcontrollers/scale subresource.
...
Also register replicationcontrollers/scale subresource. Along with
registering the resource, also specify the cross-group override for the
subresource since Scale belongs belongs to autoscaling/v1 but
ReplicationController belongs to api/v1.
2016-03-04 11:02:37 -08:00
Madhusudan.C.S
9e99f9fa0e
Register scale subresource for Deployments and ReplicaSets.
...
Define etcd registry methods for scale subresource in Deployments and
ReplicaSets. Register them with the API server.
2016-03-04 11:01:36 -08:00
Wojciech Tyczynski
506899008f
Parallelization of namespace deletion
2016-02-25 16:33:25 +01:00
Chao Xu
5b108acb38
fix ParameterCodec for thirdparty resource
2016-02-24 21:45:30 -08:00
Wojciech Tyczynski
4eadc5e97b
Introduce RESTOptions to configure per-resource storage
2016-02-22 16:28:28 +01:00
Eric Tune
ab8cfb968f
Enabled batch API group in apiserver
2016-02-19 09:20:56 -08:00
k8s-merge-robot
f1cbaed60f
Merge pull request #17493 from feihujiang/supportSubresourceOfServiceProxy
...
Auto commit by PR queue bot
2016-02-18 18:22:59 -08:00
k8s-merge-robot
5acdb92126
Merge pull request #21177 from laushinka/spelling-fixes
...
Auto commit by PR queue bot
2016-02-18 10:29:49 -08:00
k8s-merge-robot
17325ef6ef
Merge pull request #20501 from piosz/hpa-ga
...
Auto commit by PR queue bot
2016-02-18 06:52:39 -08:00
feihujiang
ac9f890238
Support the subresource of service proxy
2016-02-18 15:16:05 +08:00
laushinka
7ef585be22
Spelling fixes inspired by github.com/client9/misspell
2016-02-18 06:58:05 +07:00
Madhusudan.C.S
ab1e9c200f
Graduate DaemonSet to v1beta1 API, enable it by default.
2016-02-17 15:03:12 -08:00
k8s-merge-robot
0866c377e9
Merge pull request #18010 from feihujiang/supportSubresourceOfNodeProxy
...
Auto commit by PR queue bot
2016-02-17 08:15:50 -08:00
feihujiang
e85253916f
Support the subresource of node proxy
2016-02-16 17:02:45 +08:00
George Tankersley
31463502ec
Fix comment typo
2016-02-15 21:05:51 -08:00
Piotr Szczesniak
264c64ec0d
Enabled autoscaling API group in apiserver
2016-02-15 21:39:00 +01:00
k8s-merge-robot
94b8554c91
Merge pull request #21033 from nikhiljindal/swaggerspecInGenericServer
...
Auto commit by PR queue bot
2016-02-14 11:39:56 -08:00
Janet Kuo
2874f30c05
Enable Deployments by default
2016-02-12 12:29:14 -08:00
nikhiljindal
e2bffac285
Moving installing swagger spec to generic api server
2016-02-10 18:33:47 -08:00
Madhusudan.C.S
e7a9f30936
Address review comments.
2016-02-09 15:50:01 -08:00
Madhusudan.C.S
ed7ad6dcf3
Make deployments work.
2016-02-08 21:27:49 -08:00
Paul Weil
619ccb7023
don't enable psp by default and fix comment
2016-02-08 08:56:52 -05:00
Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
Madhusudan.C.S
48c4173f5f
Enable ReplicaSets in e2e tests.
2016-02-06 03:46:17 -08:00
Madhusudan.C.S
4f9b8b2bfc
Link all the ReplicaSet controller boilerplate together.
...
1. Enable replica set in controller manager.
2. Enable replica set etcd storage in master package.
3. Add replica set support to kubectl commands.
2016-02-05 21:05:10 -08:00
Nikhil Jindal
4606d1408b
Merge pull request #20532 from nikhiljindal/genericServerAPIs
...
Moving /apis handler to generic api server
2016-02-05 13:13:57 -08:00
Paul Weil
03261146b0
api
2016-02-05 08:45:50 -05:00
nikhiljindal
d267ab5f92
Moving /apis handler to generic server
2016-02-04 17:58:13 -08:00
Nikhil Jindal
59820827d4
Merge pull request #20513 from nikhiljindal/apiserverExampleTest
...
Adding test for apiserver example
2016-02-04 11:28:58 -08:00
Wojciech Tyczynski
f23034d5da
Reset more metrics before scalability tests
2016-02-04 11:47:13 +01:00
nikhiljindal
c7beb9078c
Updating methods to return error rather than using glog.Fatalf
2016-02-03 16:00:45 -08:00
CJ Cullen
04eb90a5d4
Make tunneler hold tunnels open and healthcheck vs. reopening every 5 minutes.
...
Also add a test for the Update() logic.
Reordered tunnels vs. storage initialization (prevent a nil ptr panic)
2016-02-02 12:00:29 -08:00
Chao Xu
90b4662d8d
Add services/status path, and let the service controller uses Services.UpdateStatus()
2016-01-31 12:39:45 -08:00
Janet Kuo
3396db9510
Add rollback subresource; add rollback logic to deployment controller
2016-01-30 16:00:34 -08:00
Paul Morie
9030f16071
Move ConfigMap to main API
2016-01-28 17:07:05 -05:00
Clayton Coleman
4d127dc969
Initialize API servers with negotiated serializers
...
Pass down into the server initialization the necessary interface for
handling client/server content type negotiation. Add integration tests
for the negotiation.
2016-01-22 01:10:22 -05:00
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
Paul Morie
9c18067e60
Add kubectl support for ConfigMap
2016-01-06 09:03:39 -05:00
nikhiljindal
87ce093c77
Moving API registration logic to generic api server
2015-12-30 14:22:14 -08:00
k8s-merge-robot
44fc4d3f34
Merge pull request #18484 from brendandburns/3rdparty5
...
Auto commit by PR queue bot
2015-12-19 10:12:35 -08:00
Brendan Burns
e594407ab5
Add dynamic APIs to the list of discoverable APIs
2015-12-18 14:03:43 -08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
nikhiljindal
2d952aaa87
Extracting APIServer machinery code into a library
2015-12-16 13:54:23 -08:00
k8s-merge-robot
6716290903
Merge pull request #18388 from nikhiljindal/clusterName
...
Auto commit by PR queue bot
2015-12-16 03:50:11 -08:00
deads2k
d0aaf13920
use constants for group names
2015-12-14 10:04:10 -05: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
nikhiljindal
724b098855
Deleting unused master.ClusterName param
2015-12-11 13:39:19 -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
deads2k
519b4e80d1
update NewObject for groupversionkind
2015-12-09 08:13:15 -05:00
nikhiljindal
5c556baa2f
Removing duplicate NewEtcdStorage code
2015-12-03 01:37:44 -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
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
harry
477da92002
Move hostIP detection from master to server
...
Add PublicAddress in test files
Move valid public addr into util
2015-11-30 16:17:37 +08:00
Tim St. Clair
20ead45af9
Move etcd_util.go to separate package
2015-11-23 11:32:50 -08:00
Abhi Shah
7033e423aa
Merge pull request #17361 from zhengguoyong/del_repeat_import_packagge
...
Del repeat imported package
2015-11-18 14:58:22 -08:00
k8s-merge-robot
0798915490
Merge pull request #17261 from nikhiljindal/masterClean
...
Auto commit by PR queue bot
2015-11-17 08:16:18 -08:00
k8s-merge-robot
5e20dcfd6f
Merge pull request #17227 from deads2k/gv-apigv
...
Auto commit by PR queue bot
2015-11-17 01:53:17 -08:00
k8s-merge-robot
7780c1718c
Merge pull request #17093 from Pendoragon/master
...
Auto commit by PR queue bot
2015-11-17 00:17:41 -08:00
zhengguoyong
1c07a56299
Del repeat imported package
2015-11-17 16:13:11 +08:00
deads2k
bf983e942c
use GroupVersion in APIGroupVersion for api installer
2015-11-16 07:42:00 -05:00
nikhiljindal
e31a08bbc1
Remove unused NodeRegexp var from master
2015-11-13 15:56:50 -08:00
David Eads
486103d887
Revert "use GroupVersion in APIGroupVersion for api installer"
2015-11-13 12:55:08 -05:00
deads2k
3c725f17ea
use GroupVersion in APIGroupVersion for api installer
2015-11-13 09:00:04 -05:00
Wojciech Tyczynski
a5a8717539
Pass versioner to cacher.
2015-11-13 08:35:28 +01:00
Pengcheng Tang
6d94dd1a05
Change order of CORS and authenticatedHandler for secureHandler.
2015-11-12 09:55:36 +08:00
ZhuPeng
b94b1efdb0
Avoid log wrong information until got PublicAddress
2015-11-10 10:45:51 +08:00
Chao Xu
15e6ca5ac5
rename to GroupVersion and rename the one in type.go to GroupVersionForDiscovery
2015-11-05 14:52:58 -08: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
Nikhil Jindal
34cbe48736
Merge pull request #16690 from nikhiljindal/apiDeclNotFound
...
Fixing missing swagger spec for apis/extensions
2015-11-03 14:36:31 -08:00
Wojciech Tyczynski
030a272db5
Enable cacher for all resources.
2015-11-03 11:55:37 +01:00
nikhiljindal
7612bded3e
Removing an erroneous /
2015-11-02 14:18:57 -08:00
Wojciech Tyczynski
8f385c563f
Refactor code for creating Cacher.
2015-11-02 20:56:46 +01: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
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
Saad Ali
ebf3ee3fb2
Merge pull request #16035 from deads2k/typo
...
fix horizonal typo
2015-10-23 12:09:11 -07: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
Filip Grzadkowski
52136bdb68
Merge pull request #15958 from deads2k/add-is-api-url
...
add nonResourceURL detection
2015-10-22 14:47:54 +02:00
deads2k
b74aa0145b
fix horizonal typo
2015-10-21 13:32:01 -04:00
gmarek
6d6cd8e46a
Use KubeletPort reporeted in NodeStatus instead of cluster-wide master config.
2015-10-21 17:19:31 +02:00