Commit Graph

1271 Commits

Author SHA1 Message Date
k8s-merge-robot
fe03c663d9 Merge pull request #22094 from alex-mohr/routes
Auto commit by PR queue bot
2016-02-29 05:46:51 -08:00
Jordan Liggitt
bd552c99c5 Remove cache-based short-circuit of token cleanup 2016-02-29 00:25:49 -05:00
k8s-merge-robot
8b19638bd0 Merge pull request #22078 from janetkuo/kill-pods-better
Auto commit by PR queue bot
2016-02-28 10:39:15 -08:00
Brian Grant
a56bbbf8bc Merge pull request #22143 from bprashanth/graceful_del
Don't double count graceful deletion
2016-02-28 08:46:52 -08:00
k8s-merge-robot
5ecbf4ff4a Merge pull request #22138 from bgrant0607/bugfix1
Auto commit by PR queue bot
2016-02-28 02:00:40 -08:00
Prashanth Balasubramanian
859f6b13fa Don't double count graceful deletion. 2016-02-28 00:30:57 -08:00
k8s-merge-robot
ff758bec58 Merge pull request #21750 from piosz/hpa-status-current-utilization
Auto commit by PR queue bot
2016-02-28 00:22:26 -08:00
Brian Grant
d0dd4f8a93 Restore expectation timeout to 5 minutes. Fix enqueueDeployment. Pass by reference.
Make names of ReplicaSets created by Deployment deterministic for idempotence.
Eliminate use of expectations in Deployment controller.
2016-02-28 07:33:07 +00:00
k8s-merge-robot
6f8a951f87 Merge pull request #20446 from derekwaynecarr/quota_scopes
Auto commit by PR queue bot
2016-02-27 19:46:42 -08:00
Mike Danese
a50bc3da10 revert deletePods changes in #22100 2016-02-27 08:40:50 -08:00
k8s-merge-robot
43792754d8 Merge pull request #21469 from wojtek-t/parallel_namespace_deletion
Auto commit by PR queue bot
2016-02-27 07:26:49 -08:00
Mike Danese
c1a7e280a3 fix pod eviction for gracefully terminationg pods 2016-02-26 17:34:15 -08:00
derekwaynecarr
af85fb57c3 Make ResourceQuota admission and controller work generically 2016-02-26 20:34:15 -05:00
Alex Mohr
0816fa2072 Add support for more than 500 results to GCE cloud provider API calls
for Instance.List and Routes.List which we will definitely have
more than 500 of when supporting 1000 nodes.

Add TODOs for other GCE List API calls to do similar fixes.

Add more logging to GCE's routecontroller.go when creating or deleting routes.
2016-02-26 16:03:01 -08:00
Fabio Yeon
53859b032f Merge pull request #22067 from derekwaynecarr/ns_controller_errors
e2e flake fix: Namespace controller error handling improvements
2016-02-26 15:59:32 -08:00
Fabio Yeon
7d0684e9c4 Merge pull request #21628 from smarterclayton/suppress_debug_logging
Reduce volume of logs generated at v(3)
2016-02-26 15:47:31 -08:00
Janet Kuo
9185c05a91 When comparing timestamp of pods, kill pods with zero timestamps first 2016-02-26 15:35:06 -08:00
Janet Kuo
2b81e751e1 Better choices of what pods to kill 2016-02-26 15:35:06 -08:00
Fabio Yeon
1bd3e83ce4 Merge pull request #22069 from a-robinson/keymutex-v2
Protect against race conditions in the service controller
2016-02-26 14:37:37 -08:00
Fabio Yeon
e4dd1e66fb Merge pull request #22030 from mikedanese/ds-nil
fix nil pointer in dameonset controller
2016-02-26 13:01:24 -08:00
Alex Robinson
ab797d1b65 A load balancer should be updated if a service's UID has changed.
The load balancer's name is determined by the service's UID. If the
service's UID has changed (presumably due to a delete and recreate),
then we need to recreate the load balancer as well to avoid eventually
leaking the old one.
2016-02-26 20:26:27 +00:00
Alex Robinson
4ce5f68ed0 Protect against race conditions in the service controller.
Re-GET the service object when we process it rather than trusting the
delta. This will make for a lot more service get requests given that we
resync all the services every 5 minutes, but will avoid re-ordering of
updates and continually retrying stale updates, as has been described in
a few other issues and PRs.
2016-02-26 20:26:22 +00:00
derekwaynecarr
a301a2565e Namespace controller error handling improvements 2016-02-26 14:08:28 -05:00
k8s-merge-robot
cab55f856b Merge pull request #22044 from davidopp/wait
Auto commit by PR queue bot
2016-02-26 10:33:15 -08:00
David Oppenheimer
690aae1e67 Wait for goroutines creating routes to finish. 2016-02-25 22:36:51 -08:00
Brian Grant
39f0edca75 Fix expectations in Deployment. Ref #19299. 2016-02-26 06:15:26 +00:00
Mike Danese
d7a7f87eee fix nil pointer in dameonset controller 2016-02-25 16:17:33 -08:00
Wojciech Tyczynski
506899008f Parallelization of namespace deletion 2016-02-25 16:33:25 +01:00
mqliang
06d57ec7f4 Deployment: preserve availability when maxUnavailability is not 100% 2016-02-25 13:30:06 +08:00
k8s-merge-robot
9a4e3f8470 Merge pull request #21870 from mqliang/lookup-cache
Auto commit by PR queue bot
2016-02-24 20:01:29 -08:00
Brian Grant
bea349a80d Merge pull request #21856 from bprashanth/ttl_race
Lock across item expiration in the ttl store.
2016-02-24 15:06:25 -08:00
Brian Grant
88056edab2 Merge pull request #21902 from janetkuo/deployment-unavailable-replicas
Fix the incorrect deployment.status.unavailableReplicas
2016-02-24 14:48:04 -08:00
Brian Grant
0b5edab208 Merge pull request #21857 from nikhiljindal/stopDeployment
fix deployment e2e flake: Update DeploymentReaper.Stop to use ObservedGeneration
2016-02-24 14:26:23 -08:00
Janet Kuo
062b9f86b9 Fix the incorrect deployment.status.unavailableReplicas 2016-02-24 14:09:49 -08:00
Chao Xu
cf98bcb48a Merge pull request #21816 from caesarxuchao/fix-21763
Fix the EventSink in HPA controller
2016-02-24 14:09:02 -08:00
Prashanth Balasubramanian
7e88b3ec84 Remove ttl store from controllers. 2016-02-24 14:06:22 -08:00
Brian Grant
832bc37ee4 Merge pull request #21713 from janetkuo/deployment-actual-replicas
Report actual replicas in deployment status
2016-02-24 13:55:16 -08:00
mqliang
e44e71ca87 make cache size configurable 2016-02-24 22:37:02 +08:00
k8s-merge-robot
8a5c959494 Merge pull request #19043 from mqliang/lookup-cache
Auto commit by PR queue bot
2016-02-24 04:02:33 -08:00
mqliang
d9a35a25d7 add lookup cache for ReplicationController and ReplicaSet 2016-02-24 17:43:22 +08:00
nikhiljindal
9d7259950b Update status for paused deployments 2016-02-24 00:49:03 -08:00
Marcin Wielgus
81fcd778e3 Merge pull request #21550 from mwielgus/hpa-pending
Don't include pending pods in metrics calculations
2016-02-24 09:38:36 +01:00
Piotr Szczesniak
4d1367c212 Added more unit test for hpa status 2016-02-24 09:18:39 +01:00
Marcin Wielgus
7ee767e4e8 Merge pull request #21743 from piosz/hpa-status
HPA update its status even if getting metrics failed
2016-02-24 09:01:35 +01:00
Marcin Wielgus
6f73f89f40 Merge pull request #21663 from gmarek/route
Wait for all route creation in RouteController
2016-02-24 09:00:08 +01:00
Dawn Chen
a8c0ac88fc Merge pull request #21754 from kargakis/use-generation-for-deployments
Use generation for deployments
2016-02-23 16:42:16 -08:00
Chao Xu
e20e295cbe fix Event broadcaster for HPA 2016-02-23 16:15:10 -08:00
kargakis
7a3d40786b switch internal field to int64 2016-02-23 19:30:33 +01:00
kargakis
418d79cb78 extensions: add observedGeneration for deployments 2016-02-23 18:47:40 +01:00
gmarek
e99ad585ce Decrease verbosity in NodeController 2016-02-23 17:03:38 +01:00
k8s-merge-robot
a89b607a9c Merge pull request #21666 from wojtek-t/registry_options
Auto commit by PR queue bot
2016-02-23 05:54:47 -08:00
Piotr Szczesniak
0dfeb81390 HPA update its status even if getting metrics failed 2016-02-23 14:30:03 +01:00
k8s-merge-robot
6b649d7f9f Merge pull request #21706 from liggitt/token-controller
Auto commit by PR queue bot
2016-02-23 02:40:26 -08:00
Piotr Szczesniak
762e155f3e Refactoring of pod autoscaler controller 2016-02-23 11:29:40 +01:00
Janet Kuo
3901423272 Report actual replicas in deployment status 2016-02-22 14:28:28 -08:00
Jordan Liggitt
92bf353496 Ensure created service account tokens are available to the token controller 2016-02-22 16:22:51 -05:00
Janet Kuo
da58172283 Ensure Deployment labels adopted ReplicaSets and pods 2016-02-22 10:58:54 -08:00
Wojciech Tyczynski
4eadc5e97b Introduce RESTOptions to configure per-resource storage 2016-02-22 16:28:28 +01:00
gmarek
b862d2bfe6 Wait for all route creation in RouteController 2016-02-22 10:12:23 +01:00
k8s-merge-robot
2e3053a204 Merge pull request #21431 from freehan/sourcerange
Auto commit by PR queue bot
2016-02-21 16:14:42 -08:00
k8s-merge-robot
a52eb5d433 Merge pull request #21268 from jsafrane/devel/recycle-provisioned
Auto commit by PR queue bot
2016-02-20 15:26:28 -08:00
Clayton Coleman
ae2f6a833a Reduce volume of logs generated at v(3)
Node controller is generating a huge amount of logging at v(3) that is
more appropriate for v(5). Split the log into two levels and ensure it
also ends up on one line (so grep works).

The pod manager generates a v(4) pod output on sync that always contains
a newline - since the size of the pod is so excessive in output, kick it
to v(5) for deep debugging (we're pretty happy with this loop).
2016-02-20 15:29:05 -05:00
k8s-merge-robot
be9dfcaec4 Merge pull request #21210 from mqliang/hasSync-early
Auto commit by PR queue bot
2016-02-20 09:54:12 -08:00
k8s-merge-robot
a6d855bf64 Merge pull request #21149 from mwielgus/hpa-rescale
Auto commit by PR queue bot
2016-02-20 01:51:08 -08:00
Marcin Wielgus
34f7105871 Don't include pending pods in metrics calculations 2016-02-19 17:00:38 +01:00
k8s-merge-robot
eb45154996 Merge pull request #21348 from caesarxuchao/generate-fake-for-1-2
Auto commit by PR queue bot
2016-02-18 23:02:05 -08:00
Minhan Xia
7ffb123abe add source range support for loadbalancer on gce 2016-02-18 17:05:02 -08:00
Andy Goldstein
49fb450a36 Fix type for DaemonSet informer 2016-02-18 14:54:39 -05: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
Marcin Wielgus
1d3891284e Handle scenarios when the replica count is outside of HPA replica range 2016-02-18 13:45:03 +01:00
k8s-merge-robot
c0b3fc454e Merge pull request #21462 from gmarek/nodecontroller
Auto commit by PR queue bot
2016-02-18 02:59:01 -08:00
gmarek
0d7f3bca0a Increase logging verbosity to help debugging #21458 2016-02-18 11:25:38 +01:00
mqliang
ced5eb7a71 return early if has not synced 2016-02-18 11:56:52 +08:00
Chao Xu
ad46715f51 generate fake client for release_1_2 2016-02-17 16:10:02 -08:00
laushinka
7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
Janet Kuo
fe4bf6ff5c When syncRecreateDeployment, don't create a new RS before scaling down 2016-02-16 18:05:44 -08:00
Janet Kuo
e9262df456 Scale up early when deployment creates new Replica set 2016-02-16 18:05:44 -08:00
k8s-merge-robot
3616b4bfec Merge pull request #21044 from mqliang/deployment-util
Auto commit by PR queue bot
2016-02-16 15:33:26 -08:00
Chao Xu
97aecd002a remove underscore in imported pkg names 2016-02-16 10:54:51 -08:00
k8s-merge-robot
6a1214b017 Merge pull request #21172 from cjcullen/cidralloc
Auto commit by PR queue bot
2016-02-16 03:26:23 -08:00
Marcin Wielgus
41cf0cd78f Change custom metrics prefix in HPA metrics client 2016-02-15 20:28:37 +01:00
Jan Safranek
6088369227 Delete provisioned volumes without claim.
There is a race in dynamic provisioning:

1. User creates a claim to dynamically provision a volume.
2. Kubernetes start provisioning the volume.
3. User deletes the claim before 2. is finished.
4. Kubernetes finished provisioning the volume.

The volume is in Pending state. This volume should be deleted instead of
moving to Available state.
2016-02-15 16:38:35 +01:00
mqliang
fcf0d6d720 add GetValueFromIntOrPercent helper funcs 2016-02-15 23:06:02 +08:00
mqliang
d96cdb93c4 move helper funcs to util/deployment.go from util.go 2016-02-15 22:36:48 +08:00
k8s-merge-robot
39a9043b8e Merge pull request #21095 from liggitt/sa-namespace
Auto commit by PR queue bot
2016-02-14 22:13:10 -08:00
k8s-merge-robot
81c8494307 Merge pull request #21010 from mikedanese/ds-revert
Auto commit by PR queue bot
2016-02-14 07:43:18 -08:00
k8s-merge-robot
315a509340 Merge pull request #20900 from jsafrane/devel/volume-names
Auto commit by PR queue bot
2016-02-13 17:58:29 -08:00
k8s-merge-robot
3b4c0beb99 Merge pull request #20868 from mqliang/int-min-max
Auto commit by PR queue bot
2016-02-13 17:32:22 -08:00
k8s-merge-robot
524aaa2f7f Merge pull request #21152 from kargakis/fix-cleanup-policy
Auto commit by PR queue bot
2016-02-13 03:47:33 -08:00
k8s-merge-robot
15893a48d9 Merge pull request #21091 from janetkuo/sync-pod-deployment
Auto commit by PR queue bot
2016-02-12 18:53:37 -08:00
k8s-merge-robot
d6b81640ed Merge pull request #21012 from cjcullen/handlertest
Auto commit by PR queue bot
2016-02-12 15:00:24 -08:00
CJ Cullen
52b16129dc Re-GET nodes during CIDR allocation (to avoid cascading bad resource version). 2016-02-12 13:08:54 -08:00
Michail Kargakis
b9839d0677 controller: fix cleanup policy for deployments
Cleanup policy should run on all replica sets and not only on those that
have pods (we will not cleanup those anyway).
2016-02-12 19:14:18 +01:00
Mike Danese
32d844e59c Merge pull request #21036 from mqliang/master-syncStore
revert #19973
2016-02-12 10:04:26 -08:00
k8s-merge-robot
ad7ed67904 Merge pull request #20213 from jsafrane/devel/pv-reload
Auto commit by PR queue bot
2016-02-12 06:49:29 -08:00
k8s-merge-robot
678958a706 Merge pull request #19868 from jsafrane/devel/syncclaim-twice
Auto commit by PR queue bot
2016-02-12 06:21:21 -08:00
Jan Safranek
1d0b1c227b Add PV.Name into names of generated GCE/AWS/OSP volumes.
Volume names have now format <cluster-name>-dynamic-<pv-name>.

pv-name is guaranteed to be unique in Kubernetes cluster, adding
<cluster-name> ensures we don't conflict with any running cluster
in the cloud project (kube-controller-manager --cluster-name=XXX).

'kubernetes' is the default cluster name.
2016-02-12 09:46:59 +01:00
Janet Kuo
2731e5fe20 Check pod HasSynced in deployment controller manager 2016-02-12 00:11:27 -08:00
mqliang
7be9071584 create some integer min/max function 2016-02-12 11:20:11 +08:00
Mike Danese
23ad84b0c7 place damonset pods on not ready nodes 2016-02-11 13:11:05 -08:00
Jordan Liggitt
20216fa607 Provide current namespace to InClusterConfig 2016-02-11 15:51:31 -05:00
mqliang
4f24ea65f2 delete replicaset when delete namespace 2016-02-12 00:20:10 +08:00
mqliang
91124afdd7 Revert "Sync pods for daemon sets."
This reverts commit ffd34311c6.
2016-02-11 11:46:16 +08:00
mqliang
d802778c20 Revert "Sync all pods with store before starting RC Manager."
This reverts commit 1b93ee7b35.
2016-02-11 11:43:49 +08:00
CJ Cullen
918b0ef479 Don't try to create routes for nodes w/o CIDRs assigned. 2016-02-10 16:23:28 -08:00
k8s-merge-robot
3b41600e5a Merge pull request #20929 from thockin/go-vet
Auto commit by PR queue bot
2016-02-10 12:13:55 -08:00
Paul Morie
3a505ac364 Make namespace controller delete configMaps in namespace 2016-02-10 10:52:24 -05:00
k8s-merge-robot
9520bb5ddf Merge pull request #20731 from Clarifai/ensure-lb-servicename
Auto commit by PR queue bot
2016-02-10 01:25:07 -08:00
k8s-merge-robot
71b6b81102 Merge pull request #20076 from derekwaynecarr/namespace_controller_workers
Auto commit by PR queue bot
2016-02-10 00:55:57 -08:00
k8s-merge-robot
41a98b43e4 Merge pull request #19840 from madhusudancs/replicaset-deployment
Auto commit by PR queue bot
2016-02-09 18:57:42 -08:00
k8s-merge-robot
2ec49efd54 Merge pull request #19945 from Clarifai/fix-formatting
Auto commit by PR queue bot
2016-02-09 16:05:00 -08:00
derekwaynecarr
106693d9b3 Refactor namespace controller to use workers, do more delete collection calls 2016-02-09 16:39:13 -05:00
Tim Hockin
7cab7bd472 fix a few go-vet errors 2016-02-09 13:20:31 -08:00
Rudi Chiarito
5874b0cb9d Pass namespaced service name to cloudprovider's EnsureLoadBalancer
Also has an AWS implementation that plugs the service name into the ELB and SG.
Log the service name under GCE and OpenStack.
Fixes #20668
2016-02-09 06:50:53 -05:00
k8s-merge-robot
ea484ecffe Merge pull request #20819 from mwielgus/logging-in-hpa
Auto commit by PR queue bot
2016-02-09 01:41:09 -08:00
Madhusudan.C.S
ed7ad6dcf3 Make deployments work. 2016-02-08 21:27:49 -08:00
Madhusudan.C.S
518f08aa7c Move Deployments to ReplicaSets and switch the Deployment selector to the new LabelSelector.
Update the Deployments' API types, defaulting code, conversions, helpers
and validation to use ReplicaSets instead of ReplicationControllers and
LabelSelector instead of map[string]string for selectors.

Also update the Deployment controller, registry, kubectl subcommands,
client listers package and e2e tests to use ReplicaSets and
LabelSelector for Deployments.
2016-02-08 21:27:38 -08:00
k8s-merge-robot
a2c8712aee Merge pull request #20368 from mqliang/cleanup-unhealthy-replicas
Auto commit by PR queue bot
2016-02-08 20:18:25 -08:00
mqliang
86aea1d59c clean up unhealthy replicas frst for old rcs when reconcileOldRCs 2016-02-09 07:43:48 +08:00
Marcin Wielgus
67e9db4377 Set verbosity for debug logs 2016-02-08 17:07:05 +01:00
gmarek
6b2507485f Add FakeNeverRateLimitter 2016-02-08 11:06:25 +01:00
Jan Chaloupka
4389b3f0d6 Rewritte util.* -> wait.* wherever reasonable 2016-02-07 12:02:20 +01:00
k8s-merge-robot
59a05682dc Merge pull request #20662 from thockin/e2e-ip-leak
Auto commit by PR queue bot
2016-02-06 23:30:56 -08:00
k8s-merge-robot
e76caf43aa Merge pull request #20703 from mwielgus/hpa-cm-validation
Auto commit by PR queue bot
2016-02-06 21:16:51 -08:00
Tim Hockin
78322091f0 Better logs in service controller 2016-02-06 21:14:20 -08:00
k8s-merge-robot
17c65cee35 Merge pull request #20607 from bprashanth/svccontroller_events
Auto commit by PR queue bot
2016-02-06 10:53:27 -08:00
k8s-merge-robot
b45a94bc78 Merge pull request #20765 from janetkuo/remove-podtemplate-key
Auto commit by PR queue bot
2016-02-06 00:44:47 -08:00
k8s-merge-robot
474795060c Merge pull request #19806 from madhusudancs/replicaset-link-boilerplate
Auto commit by PR queue bot
2016-02-05 22:45:13 -08:00
k8s-merge-robot
e3c58293b9 Merge pull request #20197 from markturansky/check_pv_by_pvc_uid
Auto commit by PR queue bot
2016-02-05 21:06:16 -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
Janet Kuo
bb0c5fea0e Fix test failure 2016-02-05 17:26:07 -08:00
Mike Danese
b1743a6887 this is a manual reversion of #20702
I can't revert with github which says "Sorry, this pull request couldn’t be
reverted automatically. It may have already been reverted, or the content may
have changed since it was merged."

Reverts commit: 0c191e787b
2016-02-05 16:34:02 -08:00
Janet Kuo
7e9fb97b7d Remove UniqueLabelKey from deployment spec 2016-02-05 16:21:44 -08:00
Daniel Smith
9b68e8ec2b Merge pull request #20269 from mqliang/sync-delta-fifo
add a HasSynced() for DeltaFIFO and FIFO, method, which is very helpful for Informer
2016-02-05 15:51:50 -08:00
Chao Xu
184440f8ef rename release_1_2 to internalclientset 2016-02-05 14:02:28 -08:00
Jan Safranek
76b6449715 Retry recycle or delete operation on failure.
Recycle controller tries to recycle or delete a PV several times.
It stores count of failed attempts and timestamp of the last attempt in
annotations of the PV.

By default, the controller tries to recycle/delete a PV 3 times in
10 minutes interval. These values are configurable by
kube-controller-manager --pv-recycler-maximum-retry=X --pvclaimbinder-sync-period=Y
arguments.
2016-02-05 17:02:13 +01:00
k8s-merge-robot
4ecfe4d207 Merge pull request #20678 from janetkuo/dont-copy-apply-annotation
Auto commit by PR queue bot
2016-02-05 05:23:08 -08:00
gmarek
0c191e787b Split controller flags between controllers 2016-02-05 12:17:51 +01:00
Marcin Wielgus
9a74a60413 Validation of HPA custom metrics annotation 2016-02-05 11:31:51 +01:00
Janet Kuo
40849a5b50 Skip apply annotation when copying annotations from deployment to RC 2016-02-04 23:30:31 -08:00
Daniel Smith
d84ac764a9 Merge pull request #20492 from erictune/labselunver
Move extensions.LabelSelector to unversioned
2016-02-04 23:17:40 -08:00
Chao Xu
1b047f8e67 rename legacy to core 2016-02-04 14:26:56 -08:00
Eric Tune
6133cb1f21 Move extensions.LabelSelector to unversioned.
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions
This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet)
are moved out of extensions to new api groups.

Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/
Also its test.
Also LabelSelectorOp* constants.
Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and
ValidateLabelSelector move to pkg/api/unversioned

The related type in pkg/apis/extensions/v1beta1/ is staying there.  I might move
it in another PR if neccessary.
2016-02-04 13:46:34 -08:00
Saad Ali
0952dcd349 Merge pull request #20389 from mqliang/deployment-MinReadySeconds
Move MinReadySeconds out of RollingUpdateDeployment
2016-02-03 22:44:14 -08:00
k8s-merge-robot
16aa40cc33 Merge pull request #20035 from janetkuo/record-command
Auto commit by PR queue bot
2016-02-03 20:19:08 -08:00
k8s-merge-robot
65ebe19164 Merge pull request #20584 from caesarxuchao/release_1_2
Auto commit by PR queue bot
2016-02-03 19:46:27 -08:00
k8s-merge-robot
d4da1ee3ce Merge pull request #19835 from janetkuo/kubectl-rollout
Auto commit by PR queue bot
2016-02-03 17:39:04 -08:00
Prashanth Balasubramanian
33654c8b4e Send update events from service-controller. 2016-02-03 16:50:13 -08:00
Chao Xu
f9f5736b01 grep sed 2016-02-03 13:06:07 -08:00
Janet Kuo
e3cb44aaff Copy deployment's annotations to its RC 2016-02-03 10:19:06 -08:00
Janet Kuo
5088d0e147 Record kubectl commands 2016-02-03 10:19:05 -08:00
Rudi Chiarito
a0831a2378 Mass fix of Infof and co. missing the trailing "f", even when formatting placeholders are used 2016-02-03 11:34:59 -05:00
k8s-merge-robot
843c11e06a Merge pull request #20452 from caesarxuchao/replace-client-kubelet
Auto commit by PR queue bot
2016-02-02 23:46:58 -08:00
Chao Xu
fe7887f1ec replace the client with clientset in controllers 2016-02-02 20:28:45 -08:00
mqliang
8e615df000 fix the HasSynced() bug for Informer 2016-02-03 11:40:11 +08:00
mqliang
c4a1ab42e3 Move MinReadySeconds out of RollingUpdateDeployment 2016-02-03 11:38:11 +08:00
Jeff Lowdermilk
caa9433234 Merge pull request #20433 from lavalamp/fix-bad-rv
Add timeout, fix potential startup hang
2016-02-02 17:27:23 -08:00
Janet Kuo
442c75045a Add kubectl rollout undo 2016-02-02 14:20:01 -08:00
k8s-merge-robot
5a099308f5 Merge pull request #20325 from mwielgus/hpa-cm-impl
Auto commit by PR queue bot
2016-02-02 09:22:50 -08:00
Jan Safranek
1edf34a4e5 Fixed persistent volume claim controllers processing an old claim.
Fixes #19860 (it may be easier to look at the issue to see exact sequence
to reproduce the bug and understand the fix).

When PersistentVolumeProvisionerController.reconcileClaim() is called with the
same claim in short succession (e.g. the claim is created by an user and
at the same time periodic check of all claims is scheduled), the second
reconcileClaim() call gets an old copy of the claim as its parameter.

The method should always reload the claim to get a fresh copy with all
annotations, possibly added by previous reconcileClaim() call.


The same applies to PersistentVolumeClaimBinder.syncClaim().


Also update all the test to store claims in "fake" API server before calling
syncClaim and reconcileClaim.
2016-02-02 13:52:07 +01:00
k8s-merge-robot
17a5058e83 Merge pull request #19893 from janetkuo/kubectl-rollout-history
Auto commit by PR queue bot
2016-02-02 01:13:15 -08:00
Daniel Smith
4a7d70aef1 extend fake clock 2016-02-01 15:36:15 -08:00
Janet Kuo
8fb86a3d3b Add kubectl rollout history 2016-02-01 15:32:43 -08:00
harry
1032067ff9 Replace runtime reference by pkg 2016-02-01 21:06:44 +08:00
Marcin Wielgus
05565ff7e5 CustomMetrics in HPA controller 2016-02-01 13:45:45 +01:00
Jan Safranek
e2826626b1 Fixed persistent volume claim controllers processing an old volume
We should always load the newest version of the volume from APIserver before
processing it.

When PersistentVolumeProvisionerController.reconcileVolume() is called with the
same volume in short succession (e.g. the volume is created by a provisioner
and at the same time periodic check of all volumes is scheduled), the second
reconcileVolume() call gets an old copy of the volume as its parameter and
it does not see annotations updated by the previous call.

This may result in one volume being provisioned several times, creating orphan
volumes in the cloud.

The same error is in PersistentVolumeClaimBinder.syncVolume().
2016-02-01 10:44:31 +01:00
k8s-merge-robot
dff7490c57 Merge pull request #20312 from caesarxuchao/replace-many-controllers
Auto commit by PR queue bot
2016-01-31 18:42:26 -08:00
Chao Xu
c72d234bbf replacing handwritten client in several controllers 2016-01-31 15:42:02 -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
Janet Kuo
42f712467e Use ListOptions when listing RCs in deployment 2016-01-30 12:04:35 -08:00
Janet Kuo
c84a0371a2 Deployment adds version info to its new rc 2016-01-30 12:04:35 -08:00
k8s-merge-robot
783d1d00d7 Merge pull request #20139 from janetkuo/rcList-namespace
Auto commit by PR queue bot
2016-01-30 09:42:35 -08:00
k8s-merge-robot
5b5f170a50 Merge pull request #20239 from mwielgus/hpa-client-cm
Auto commit by PR queue bot
2016-01-30 08:06:05 -08:00
k8s-merge-robot
ce9f93df2e Merge pull request #20061 from mikedanese/copypaste
Auto commit by PR queue bot
2016-01-30 05:52:26 -08:00
k8s-merge-robot
958c1daafe Merge pull request #19747 from madhusudancs/replicaset-controller
Auto commit by PR queue bot
2016-01-30 02:38:58 -08:00
mqliang
c5cda2012a cleanup-policy 2016-01-30 09:57:21 +08:00
Fabio Yeon
eb2c2d1af4 Merge pull request #20111 from fabioy/fix-tmp-tests
Add temp directory creation method for tests.
2016-01-29 09:51:12 -08:00
Madhusudan.C.S
119ff39f24 Implement replica set controller. 2016-01-29 09:50:43 -08:00
Marcin Wielgus
a3972947cc CustomMetrics in HPA MetricsClient 2016-01-29 18:20:57 +01:00
k8s-merge-robot
28951bd66a Merge pull request #19567 from mml/forgive-me-not
Auto commit by PR queue bot
2016-01-29 02:49:32 -08:00
Madhusudan.C.S
73fb6dca62 DaemonSetSpec.Template should not be a pointer.
Pod template for DaemonSets isn't optional, like Deployments and Jobs,
so the DaemonSetSpec.Template field should not be a pointer.
2016-01-28 22:51:58 -08:00
Brian Grant
282b9eebb8 Merge pull request #20241 from janetkuo/fix-recreatedeployment
Fix e2e test failure for RecreateDeployment
2016-01-28 13:28:48 -08:00
Mike Danese
e2fecf36b9 daemonset: apply predicated when placing daemon pods 2016-01-28 13:26:16 -08:00
Matt Liggett
0ba1b49b42 When a node becomes unreachable, do not evict DaemonSet-managed pods.
Part of the graduation requirement for DaemonSet spelled out in #15310.
2016-01-28 11:08:52 -08:00
Filip Grzadkowski
471e602bcd Merge pull request #20155 from mwielgus/update-heapster-api
Update Heapster API in Godeps
2016-01-28 14:14:27 +01:00
Marcin Wielgus
b49cba7182 Update Heapster API in Godeps 2016-01-28 11:55:22 +01:00
Fabio Yeon
7205a160ac Remove all instances of "/tmp" from unit tests and replace with a common
tmp directory creator. Exception is documented.
2016-01-27 16:11:22 -08:00
Janet Kuo
7255af6de3 Fix e2e test failure for RecreateDeployment 2016-01-27 15:04:54 -08:00
k8s-merge-robot
458eb5284a Merge pull request #19105 from smarterclayton/prepare_negotiate
Auto commit by PR queue bot
2016-01-27 13:35:30 -08:00
markturansky
1ad2df6b61 verify UID when releasing and binding volumes 2016-01-27 08:43:18 -05:00
k8s-merge-robot
bd7255a27e Merge pull request #18901 from kargakis/inert-deployments
Auto commit by PR queue bot
2016-01-27 05:14:38 -08:00
Clayton Coleman
38c7eded99 Prepare for content-type negotiation
Combine the fields that will be used for content transformation
(content-type, codec, and group version) into a single struct in client,
and then pass that struct into the rest client and request. Set the
content-type when sending requests to the server, and accept the content
type as primary.

Will form the foundation for content-negotiation via the client.
2016-01-26 17:44:30 -05:00
Brendan Burns
f919c3bb66 Merge pull request #19973 from bprashanth/replication_controllers
Sync pods with store before starting controllers
2016-01-26 12:47:51 -08:00
Brendan Burns
ca51446101 Merge pull request #20148 from davidopp/flake3
Manually revert #19580 and #17754.
2016-01-26 11:56:17 -08:00
Michail Kargakis
436d2677f9 extensions: support paused deployments
This commit adds support for paused deployments so a user can choose
when to run a deployment that exists in the system instead of having
the deployment controller automatically reconciling it after every
change or sync interval.
2016-01-26 12:42:26 +01:00
k8s-merge-robot
a14d0fd641 Merge pull request #19382 from janetkuo/deployment-status
Auto commit by PR queue bot
2016-01-26 03:24:37 -08:00
k8s-merge-robot
52cb4c1d9d Merge pull request #18445 from resouer/fix-emptydir
Auto commit by PR queue bot
2016-01-26 02:45:54 -08:00
David Oppenheimer
85f88b8645 Run gofmt. 2016-01-25 23:25:38 -08:00
David Oppenheimer
2a6da5871a Revert #19580 and #17754. Fixes #20048. 2016-01-25 23:19:22 -08:00
Janet Kuo
14f4f1b065 Make listing deployment rcStore namespaced 2016-01-25 19:13:17 -08:00
Janet Kuo
9739a67833 Deployment status: number of available/unavailable pods 2016-01-25 14:30:15 -08:00
k8s-merge-robot
d7d601b2fc Merge pull request #18876 from erictune/dynamic-job
Auto commit by PR queue bot
2016-01-25 08:06:22 -08:00
k8s-merge-robot
d3b869ae14 Merge pull request #17922 from smarterclayton/split_codec
Auto commit by PR queue bot
2016-01-25 06:30:39 -08:00
harry
0fa5b6c4f7 Add e2e test for wrapper volumes
Use git server in e2e and refactor wrapper builder

Update e2e test to use a fake git server
2016-01-24 16:57:44 +08:00
Prashanth Balasubramanian
ffd34311c6 Sync pods for daemon sets. 2016-01-22 16:42:07 -08:00
Prashanth Balasubramanian
1b93ee7b35 Sync all pods with store before starting RC Manager. 2016-01-22 16:42:02 -08:00
Eric Tune
53ee76fe1a Support Work Queue jobs with variable parallelism
When job.spec.completions is nil, only
one task needs to succeed for the job to succeed,
and parallelism can be scaled freely during runtime.

Added tests.

Release Note:

This causes two minor changes to the API.

First, unset parallelism previously was defaulted to be
equal to completions.  Now it always defaults to 1 if unset.

Second, having parallelism=N and completions unset would previously
be defaulted to 1 completion and N parallelism.
(this is not something we expect people to do, though)
Now, no defaulting occurs in that case, and the job's
behavior is different (any completion causes success).
2016-01-22 14:57:51 -08:00
Zach Loafman
b25d596a2b Merge pull request #19630 from mikedanese/fix-test
test: make ValidateCount throw an error instead of a log
2016-01-22 11:08:27 -08:00
Clayton Coleman
4a6935b31f Remaining codec change refactors 2016-01-22 13:27:27 -05:00
Clayton Coleman
33085c0cf2 Update tests to handle codec changes 2016-01-22 13:27:26 -05:00
Zach Loafman
f3a638de31 Merge pull request #16067 from smarterclayton/backoff_conflict
Provide a RetryOnConflict helper for client libraries
2016-01-22 10:23:19 -08:00
Nikhil Jindal
cd2e0c490e Merge pull request #19674 from nikhiljindal/latestAndRegistered
Merge registered and latest and move to apimachinery
2016-01-21 17:19:49 -08:00
Alex Mohr
4ac2f7453d Merge pull request #19533 from kargakis/bloated-job-status-fix
Fix job status conditions bloat
2016-01-21 15:10:49 -08:00
Alex Mohr
12845ba9a5 Merge pull request #18877 from markturansky/fix_18830
Trigger syncClaim after PV provisioning to reduce wait
2016-01-21 15:06:46 -08:00
nikhiljindal
2ad642d370 Merge registered and latest and move to apimachinery 2016-01-21 14:42:21 -08:00
Alex Mohr
ad5dce89f0 Merge pull request #19790 from mqliang/podgc-event
remove unused eventBroadcaster in gc controller
2016-01-21 13:54:12 -08:00
Alex Mohr
a77f7205ea Merge pull request #19506 from a-robinson/goversion
Resolve old TODO that was waiting on us to move off of go 1.3
2016-01-21 10:42:06 -08:00
Alex Mohr
94b2490eba Merge pull request #19580 from WeixuZhuang/node
resolve the bug when cluster CIDR is not /8
2016-01-21 10:34:19 -08:00
Alex Mohr
8c9aa2af33 Merge pull request #19733 from janetkuo/flaky-deployment-recreate
Fix e2e flake: Sync deployment status when with RecreateDeploymentStrategy
2016-01-21 10:23:21 -08:00
k8s-merge-robot
6cf3a4b5f0 Merge pull request #18957 from jsafrane/devel/pv-name-tag
Auto commit by PR queue bot
2016-01-21 05:55:12 -08:00
Clayton Coleman
29028a1332 Fix unrelated log level error 2016-01-20 22:58:17 -05:00
Clayton Coleman
33660e001a Update service account tokens controller to use client.RetryOnConflict 2016-01-20 22:58:17 -05:00
Alex Mohr
a9050679a5 Merge pull request #19520 from janetkuo/deployment-expectation-fix
Fix e2e flake: Fix incorrect expectation when deployment scaling down old rcs
2016-01-20 13:44:30 -08:00
Mike Danese
39c7ea57b0 test: make ValidateCount throw an error instead of a log
We can either fix it here or at every callsite. Every callsite is
currently using this method incorrectly.

Signed-off-by: Mike Danese <mikedanese@google.com>
2016-01-19 15:59:32 -08:00
Marek Grabowski
810544633e Merge pull request #19751 from mikedanese/fix-nil
deployment: fix nil pointer panic
2016-01-18 18:08:33 +01:00
mqliang
6fe899b007 remove unused eventBroadcaster in gc controller 2016-01-18 20:40:11 +08:00
k8s-merge-robot
ad827c6b62 Merge pull request #19573 from madhusudancs/daemonset-update-move-utils
Auto commit by PR queue bot
2016-01-17 08:16:11 -08:00
Mike Danese
78d27a5d2f deployment: fix nil pointer panic 2016-01-15 17:58:01 -08:00
Mike Danese
936c8cd597 Merge pull request #19685 from resouer/testing
Replace fake handler using testing pkg
2016-01-15 17:47:53 -08:00
Janet Kuo
d693ffaa57 Fix incorrect expectation when deployment scaling down old rcs 2016-01-15 16:29:53 -08:00
Janet Kuo
5a22e30b7d Sync deployment status when with RecreateDeploymentStrategy 2016-01-15 16:10:06 -08:00
k8s-merge-robot
0834890c42 Merge pull request #17741 from freehan/nodedown
Auto commit by PR queue bot
2016-01-15 00:02:48 -08:00
harry
98222b4d8b Replace to tag
Use a testing pkg to replace testing util codes
2016-01-15 15:07:21 +08:00
Minhan Xia
01829432db update pod status once node becomes NotReady 2016-01-14 17:41:36 -08:00
Mike Danese
1acfb151b6 Merge pull request #19433 from janetkuo/deployment-e2e-flake-fix
Fix flaky e2e: Use expectation model for deployment's new rc creation
2016-01-14 13:23:46 -08:00
k8s-merge-robot
6a5ea5ec04 Merge pull request #19239 from markturansky/fixup_pv_controllers
Auto commit by PR queue bot
2016-01-13 21:34:05 -08:00
Weixu Zhuang
2af68d25b8 resolve the bug when cluster CIDR is not /8
We will have the rigth formula to generate correct maxCIDRs now.
Previous code assume cluster CIDR is /8 which may not be true.
Now it generates maxCIDR based on the info of cluster IP.
2016-01-13 11:55:19 -08:00
k8s-merge-robot
077d1ddb61 Merge pull request #16713 from mqliang/RecreateDeployment
Auto commit by PR queue bot
2016-01-13 01:04:51 -08:00
mqliang
92798408af implement reconcileRecreateDeployment 2016-01-13 11:27:26 +08:00
Madhusudan.C.S
4caa8a2c1d Move pod template hash and label adding util functions to their packages.
These utilities are useful outside Deployments as well, for example
in DaemonSets for DaemonSet updates. So move them to their own util
packages.
2016-01-12 16:11:00 -08:00
Janet Kuo
c2463a5aef Generalize name of expectations since they aren't only used for pods 2016-01-12 14:48:57 -08:00
Janet Kuo
e1554c0f4d Fix flaky e2e: Use expectation model for deployment's new rc creation 2016-01-12 14:48:57 -08: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
Michail Kargakis
dd84bba64c Fix job status conditions bloat
When a job is complete, the controller will indefinitely update its conditions
with a Complete condition. This change makes the controller exit the
reconcilation as soon as the job is already found to be marked as complete.
2016-01-12 16:41:44 +01:00
k8s-merge-robot
5b43a12775 Merge pull request #17754 from WeixuZhuang/node_controller
Auto commit by PR queue bot
2016-01-12 02:47:23 -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
k8s-merge-robot
37b5726716 Merge pull request #14431 from Defensative/UDP-LB
Auto commit by PR queue bot
2016-01-08 12:39:02 -08:00
Jan Safranek
8c48250a55 Add an integration test for volume tags. 2016-01-08 19:09:29 +01:00
Alex Robinson
6528999856 Resolve old TODO that was waiting on us to move off of go 1.3 2016-01-07 21:06:00 -05:00
Janet Kuo
c782aaa504 Wait for rc store synced before syncing deployment 2016-01-06 12:43:06 -08:00
Kenneth Shelton
9e6c45c395 Updated comments
Updated documentation
Fixed e2e test
2016-01-05 20:51:21 +00:00
Kenneth Shelton
d399a8f8cc * Added UDP LB support (for GCE) 2016-01-05 20:51:21 +00:00
k8s-merge-robot
cd097e3f86 Merge pull request #19088 from smarterclayton/separate_service_account
Auto commit by PR queue bot
2016-01-04 08:38:24 -08:00
Jan Safranek
400ebf87a1 Add PV.Name to volume tags.
We add claim.Name and claim.Namespace as tags to AWS EBS / GCE PD / OpenStack
Cinder volumes created by Kubernetes. To easily match Kubernetes volumes and
cloud volumes, let's add also PV.Name.
2016-01-04 12:28:02 +01:00
markturansky
50d83f3851 added missing return statements 2016-01-03 13:54:09 -05:00
Weixu Zhuang
3928bd6e76 Fix TODO in pkg/controller/nodecontroller.go line 472
The code now calculates and find out the CIDRs for every node in any sync period.
I will fix this TODO by maintaining a set for available CIDRs left. Firstly, I will
insert 256 CIDRs into the available set. Once someone get one CIDR, remove this CIDR
from the available set. If one node get deleted, we will reinsert the CIDR associates
with this node back to available CIDR. Once there are nothing left in available CIDR set,
generate another 256 CIDRs and insert them into the available set. As a result, we do not
need to generate CIDRs in every monitor process and we only need to assign CIDR to node
which does not have it.

This commit also fix the error that CIDR may overflow when we use the function
generateCIDRs. There will be no more ip overflowing, all assigan CIDR will be valid
2015-12-28 11:15:38 -08:00
Clayton Coleman
9dad7e624c Split the serviceaccount package into two parts
Public utility methods and JWT parsing, and controller specific logic.
Also remove the coupling between ServiceAccountTokenGetter and the
authenticator class.
2015-12-26 21:28:12 -05:00
mqliang
7d87a1de99 create and delete concurrently 2015-12-26 21:30:31 +08:00
k8s-merge-robot
c3fcfd9651 Merge pull request #17881 from jiangyaoguo/emit-event-when-delete-pod
Auto commit by PR queue bot
2015-12-23 07:01:54 -08:00
Mike Danese
b2aa98f50d fix flake in deployment unit test 2015-12-22 14:28:44 -08:00
k8s-merge-robot
b97cfd8d8f Merge pull request #18818 from mqliang/parseordie
Auto commit by PR queue bot
2015-12-20 15:08:38 -08:00
jiangyaoguo
91e0bbebfb emit event when controller delete pod 2015-12-21 02:11:55 +08:00
k8s-merge-robot
20b7810a21 Merge pull request #16667 from DirectXMan12/refactor/hpa-use-namespacers
Auto commit by PR queue bot
2015-12-20 07:34:39 -08:00
k8s-merge-robot
bb65bed98b Merge pull request #16915 from kargakis/move-utility
Auto commit by PR queue bot
2015-12-19 17:58:37 -08:00
Janet Kuo
1a8f96231a Add expectation model for pod deletion 2015-12-17 19:29:54 -08:00
Janet Kuo
32d153093e Fix deployment tests failures; change ResyncPeriod 2015-12-17 19:29:54 -08:00
Sam Ghods
b838d8ce18 Add informers to deployment controller 2015-12-17 19:29:54 -08:00
markturansky
66b5844841 trigger syncClaim after pv provisioning to reduce wait 2015-12-17 21:35:10 -05:00
Eric Tune
1752cf22d4 Merge pull request #17940 from soltysh/job_deadline
Added ActiveDeadlineSeconds to jobs
2015-12-17 13:11:13 -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
deads2k
9fda7f1812 update StatusDetails to handle Groups 2015-12-17 09:14:12 -05:00
combk8s
f697732a5d move parse or die logic to selector.go 2015-12-17 19:59:46 +08:00
k8s-merge-robot
9b106f5bc9 Merge pull request #18083 from markturansky/fail_if_no_recycler
Auto commit by PR queue bot
2015-12-16 19:35:49 -08:00
Saad Ali
3968a5e63c Merge pull request #18601 from pmorie/devel/provisioner-aws
Dynamic provisioner for AWS EBS
2015-12-16 10:51:35 -08:00
k8s-merge-robot
12552912c8 Merge pull request #18042 from markturansky/nil_pointer_fix
Auto commit by PR queue bot
2015-12-16 09:12:41 -08:00
Clayton Coleman
8f203a28f1 Change runtime.Object signature 2015-12-15 13:36:25 -05:00
kargakis
0c58170ad0 Move port utility out of endpoints controller 2015-12-15 18:54:08 +01:00
markturansky
4aacb76149 added cast checks to controllers to prevent nil panics 2015-12-15 11:34:03 -05:00
Jan Safranek
6ff5286df9 Implement Creater and Deleter interfaces for AWS EBS.
Also mark the created EBS volumes with tags, so the admin knows
who/what created the volumes.
2015-12-15 10:22:49 +01:00
Solly Ross
15fc230a59 Make HPA Controller use Namespacers
The HPA controller had previously used a single Client
object to act as three different Namespacers.  To improve
ease of extensibility and to make it clearer what the HPA
controller actually needs to use from the client, it should
use separate Namespacers for each of its needs (Scales, HPAs,
and Events).
2015-12-14 11:41:00 -05:00
deads2k
d0aaf13920 use constants for group names 2015-12-14 10:04:10 -05:00
Wojciech Tyczynski
960808bf08 Switch to versioned ListOptions in client. 2015-12-14 14:26:09 +01:00
Wojciech Tyczynski
342eee680c Revert "[hpa] Parameterize tolerance, downscale, and upscale into HPAController, and add corresponding unit test for backsolved tolerance." 2015-12-13 09:54:43 +01:00
k8s-merge-robot
9b07349013 Merge pull request #18315 from jayunit100/hpa-tolerance-config
Auto commit by PR queue bot
2015-12-12 01:55:46 -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
markturansky
4fc1bf1f23 Added PersistentVolumeController 2015-12-11 10:33:30 -05:00
markturansky
34c063cfe1 attempt recycling once, fail pv permanently 2015-12-10 18:23:45 -05:00
Jay Vyas
5161d169ba Parameterization for downscale, upscale, and tolerance with backsolving
unit test for visible testing of tolerance algorithm expectations. Logs for dScale, uScale, tol creation.
2015-12-10 10:59:21 -05:00
Wojciech Tyczynski
f28bb68d8c Support collection deletion in apiserver. 2015-12-10 09:46:25 +01:00
Phillip Wittrock
c67ce887f2 Volume Metrics Interface and base implementation.
- Add volume.MetricsProvider function to Volume interface.
- Add volume.MetricsDu for providing metrics via executing "du".
- Add volulme.MetricsNil for unsupported Volumes.
2015-12-09 16:06:24 -08:00
k8s-merge-robot
b46cee885a Merge pull request #18378 from krousey/controllerflake
Auto commit by PR queue bot
2015-12-09 08:44:29 -08:00
Wojciech Tyczynski
a915b8b29a Merge pull request #18080 from wojtek-t/list_options_in_listwatch
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
Kris
cec9c47f41 Only delete pods when they reach final state 2015-12-08 11:35:42 -08:00
deads2k
2ee3dfe415 update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
Wojciech Tyczynski
b0fcb5adef Pass ListOptions to List in ListWatch. 2015-12-07 11:53:53 +01:00
k8s-merge-robot
db11f1b6c6 Merge pull request #17133 from derekwaynecarr/quota_controller_improvements
Auto commit by PR queue bot
2015-12-06 12:24:00 -08:00
k8s-merge-robot
e2679abdb8 Merge pull request #18011 from sdminonne/podSelector_labelSelector
Auto commit by PR queue bot
2015-12-05 13:56:04 -08:00
Janet Kuo
8fb0caa15b Implement MinReadySeconds for Deployment 2015-12-04 12:58:34 -08:00
Salvatore Dario Minonne
80575c3093 renaming PodSelector to LabelSelector 2015-12-04 09:49:08 +01:00
Zach Loafman
a7da123836 Merge pull request #18173 from mikedanese/pod-stuck
actually validate semver in node controller rather than prefix checking
2015-12-03 15:55:22 -08:00
Mike Danese
f784be33ac actually validate semver in node controller rather than prefix checking 2015-12-03 14:49:44 -08:00
derekwaynecarr
55d4f70f8e Resource quota observes deletes faster 2015-12-03 17:35:05 -05:00
deads2k
7ae4d4f424 allow enforcing SA mountable secrets per SA 2015-12-03 13:53:01 -05:00
Wojciech Tyczynski
6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
Marek Grabowski
f633aa67b1 Merge pull request #18065 from jszczepkowski/hpa-fix
Fixed forbidden window enforcement in horizontal pod autoscaler.
2015-12-03 08:36:10 +01:00
Jerzy Szczepkowski
8cdda36b1e Fixed forbidden window enforcement in horizontal pod autoscaler.
Fixed forbidden window enforcement in horizontal pod autoscaler: time of the oldest report instead of now is taken into account. Fixes #17992.
2015-12-03 08:29:24 +01:00
k8s-merge-robot
8a8639d7af Merge pull request #17863 from wojtek-t/only_list_options_in_watch
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
Wojciech Tyczynski
8343c8ce6c Pass ListOptions to List() methods. 2015-12-01 15:00:36 +01:00
Wojciech Tyczynski
d2dfc912e6 Simplify Watch() signature in clients. 2015-12-01 14:19:26 +01:00
Weixu Zhuang
c7756ce8d5 Enqueue DaemonSet only it has new or updated nodes in it.
When add node or update node func is called, all DaemonSets are enqueued to workqueue
of DaemonSet Controller. The consumer of the workqueue does an iteration of node.List
for every DaemonSet in the workqueue.

This change examinate the daemonSet before we enqueue it into DaemonSetController's work queue.
It will enqueue the DaemonSet only when it is related to the changed node.
2015-11-30 11:51:43 -08:00
k8s-merge-robot
4eb010b1f7 Merge pull request #17694 from hongchaodeng/ratelimit
Auto commit by PR queue bot
2015-11-26 13:12: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
Phillip Wittrock
6b358e43dd Merge pull request #17747 from saad-ali/fixErrorCreatingPDTry2
Refactor GCE wrapper library to allow execution from E2E test suite
2015-11-25 15:57:42 -08:00
k8s-merge-robot
7f2f7aa091 Merge pull request #16432 from markturansky/recycler_race
Auto commit by PR queue bot
2015-11-25 11:54:06 -08:00
saadali
42b200a0a0 Refactor GCE wrapper library to allow execution from E2E test suite
This reverts commit 147b6911f5, reversing
changes made to 6fd986065b.
2015-11-25 11:48:06 -08:00
k8s-merge-robot
3bd23b185b Merge pull request #17730 from wojtek-t/use_unversioned_list_options_in_client
Auto commit by PR queue bot
2015-11-25 09:10:19 -08:00
k8s-merge-robot
d42030170b Merge pull request #15999 from aveshagarwal/master-issue-15624
Auto commit by PR queue bot
2015-11-24 17:07:10 -08:00
Wojciech Tyczynski
b6ef62af24 Use unversioned.ListOptions in clients. 2015-11-24 16:52:09 +01:00
Avesh Agarwal
3d5207fd73 This commit adds type information to events.
This addresses issue #15624.
2015-11-24 09:59:54 -05:00
k8s-merge-robot
4fd6b6df06 Merge pull request #17316 from deads2k/gv-ClientForVersion
Auto commit by PR queue bot
2015-11-24 06:24:28 -08:00
Hongchao Deng
13d152a873 RateLimiter: change CanAccept() to TryAccept() 2015-11-23 16:42:53 -08:00
k8s-merge-robot
06ef4b0a83 Merge pull request #17156 from feihujiang/moveListFunctionsFromRuntimeToMetaPackage
Auto commit by PR queue bot
2015-11-23 14:13:25 -08:00
k8s-merge-robot
2d4757a8df Merge pull request #17306 from combk8s/patch-1
Auto commit by PR queue bot
2015-11-23 08:21:37 -08:00
Jerzy Szczepkowski
8a922e22be Revert "Refactor GCE wrapper library to allow execution from E2E test suite" 2015-11-23 09:24:32 +01:00
k8s-merge-robot
3fbf0cb810 Merge pull request #17276 from saad-ali/fixErrorCreatingPD
Auto commit by PR queue bot
2015-11-21 23:32:30 -08:00
deads2k
a87d927588 update client.Config to use GroupVersion 2015-11-21 08:29:26 -05:00
saadali
882469dd7b Refactor GCE wrapper library to allow execution from E2E test suite 2015-11-20 11:41:10 -08:00
feihujiang
ad79fa6e84 Move list functions from runtime to meta package 2015-11-20 09:20:55 +08:00
Mike Danese
a6fb172818 extract shouldRun predicate to a function in daemonset controller 2015-11-18 16:44:41 -08:00
Abhi Shah
a63711c143 Merge pull request #17318 from mikedanese/ds-fix
daemonset shouldn't place onto unschedulable nodes
2015-11-18 14:51:32 -08:00
combk8s
9bad6b65ec Update nodecontroller.go 2015-11-18 19:58:53 +08:00
k8s-merge-robot
849280f18d Merge pull request #16926 from liggitt/metrics_https
Auto commit by PR queue bot
2015-11-17 04:05:27 -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
Jordan Liggitt
165d7d5030 Enable specifying scheme/port for metrics client 2015-11-16 13:18:40 -05:00
Mike Danese
f674109502 daemonset shouldn't place onto unschedulable nodes 2015-11-16 10:17:40 -08:00
Mike Danese
7a7f31ead1 move daemonset to generalized label selector 2015-11-13 10:31:50 -08:00
k8s-merge-robot
21dbeb5302 Merge pull request #16714 from liggitt/tolerate_exists_errors
Auto commit by PR queue bot
2015-11-13 03:36:16 -08:00
Wojciech Tyczynski
a5a8717539 Pass versioner to cacher. 2015-11-13 08:35:28 +01:00
k8s-merge-robot
6ef6b9e055 Merge pull request #17054 from mesosphere/sttts-set-pod-resources
Auto commit by PR queue bot
2015-11-12 22:29:26 -08:00
markturansky
b9b8cf7fff Fixed race condition in pv binder 2015-11-12 13:55:09 -05:00
k8s-merge-robot
a752dad1ba Merge pull request #16818 from derekwaynecarr/ns_controller_race
Auto commit by PR queue bot
2015-11-12 09:20:20 -08:00
Dr. Stefan Schimanski
a3f02cda17 Add resource requests support 2015-11-12 16:56:07 +01:00
combk8s
50ce7ff1f2 Update nodecontroller.go 2015-11-10 20:27:33 +08:00
Mike Danese
9b982e1d3c generate rc name from deployment name 2015-11-09 15:33:04 -08:00
derekwaynecarr
745c58e788 Namespace controller should always get latest state prior to deletion 2015-11-06 11:43:56 -05:00
k8s-merge-robot
76ec5cd1c8 Merge pull request #16784 from mqliang/AssignLoop
Auto commit by PR queue bot
2015-11-05 14:24:37 -08:00
k8s-merge-robot
cdbb461194 Merge pull request #16745 from pmorie/replica-count-update-debug
Auto commit by PR queue bot
2015-11-05 01:12:15 -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
mqliang
f26d437903 move assignment in loop 2015-11-04 15:42:25 +08:00
Paul Morie
09701b4fa8 Surface replica count update errors in log 2015-11-03 14:20:08 -05:00
deads2k
fd1c8e096a eliminate cross-namespace HPA escalation attack 2015-11-03 08:05:26 -05:00
k8s-merge-robot
76083f73dc Merge pull request #16671 from DirectXMan12/refactor/hpa-heapster-service
Auto commit by PR queue bot
2015-11-03 03:58:26 -08:00
Wojciech Tyczynski
030a272db5 Enable cacher for all resources. 2015-11-03 11:55:37 +01:00
Jordan Liggitt
974af49e77 Tolerate AlreadyExists errors when creating service accounts 2015-11-03 00:35:19 -05: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
Solly Ross
f262560cac Customize HPA Heapster service namespace/name
This commit makes the HPA metrics client configurable in where
it looks for heapster instead of hard coding it to
"kube-system/heapster".  The values of "kube-system/heapster"
are still recorded as constants in the metrics client package
for use as default values.
2015-11-02 11:14:08 -05:00
Alex Robinson
97275873ff Merge pull request #16591 from kubernetes/revert-15838-issue14500
Revert "An attempt to fix flake in TestControllerSyncJob (14500)"
2015-10-30 13:14:05 -07:00
Eric Tune
a600ac0cca Revert "An attempt to fix flake in TestControllerSyncJob (14500)" 2015-10-30 08:56:11 -07:00
Wojciech Tyczynski
aac55d4795 Unify List() signature in clients 2015-10-30 15:43:40 +01:00
k8s-merge-robot
536740f38f Merge pull request #16443 from brendandburns/lb2
Auto commit by PR queue bot
2015-10-30 02:05:11 -07:00
David Oppenheimer
899ddc66eb Merge pull request #16478 from mikedanese/ds-nodeready
daemonset don't place pods on notready nodes
2015-10-30 01:07:28 -07:00
Brendan Burns
604203595a Fix a bug where nodes that weren't schedulable or ready are added to load balancers 2015-10-29 22:05:08 -07:00
k8s-merge-robot
f4b2d8358f Merge pull request #16179 from madhusudancs/master-out-of-disk
Auto commit by PR queue bot
2015-10-29 11:57:25 -07:00
k8s-merge-robot
1ecda94f0a Merge pull request #15305 from mqliang/deamonSetList
Auto commit by PR queue bot
2015-10-29 11:25:52 -07:00
Mike Danese
f237db81f0 daemonset don't place pods on notready nodes 2015-10-29 11:11:20 -07:00
Madhusudan.C.S
ce257b5a0e Use node out of disk condition in the scheduler while scheduling pods.
Set the out of disk node condition to unknown in the node controller if
the kubelet does not report its node condition in a long time. Update
node controller unit tests.

Implement a node condition predicate function that checks if a given
node satisfies the conditions defined by the predicate and if it
does, use that node for scheduling pods. The predicate function takes
both NodeReady and NodeOutOfDisk into consideration to determine if a
node is fit for scheduling pods.

The predicate is then passed to the node lister in the scheduler factory
so that the node lister can run the predicate function on the nodes when
schedling pods thereby omitting nodes that does not satisfy the
predicate.

Also update listers test.
2015-10-28 14:29:46 -07:00
Mike Danese
b0a41108af move deployment PodTemplate to be not a pointer 2015-10-28 00:13:40 -07:00
k8s-merge-robot
d228fd6d9c Merge pull request #15809 from mikedanese/deploy
Auto commit by PR queue bot
2015-10-27 19:25:12 -07:00
Jerzy Szczepkowski
5ef087adab Merge pull request #16266 from wojtek-t/fix_handshake_reflector
Reuse TCP connections in Reflector between resync periods.
2015-10-27 10:36:18 +01:00
k8s-merge-robot
df265b2d6e Merge pull request #15510 from aveshagarwal/master-selflink-objref
Auto commit by PR queue bot
2015-10-27 00:37:21 -07:00
Wojciech Tyczynski
d47e21f19f Reuse TCP connections in Reflector between resync periods. 2015-10-26 19:35:25 +01:00
Jerzy Szczepkowski
de25a3bc08 Fixed resetting last scale time in HPA status.
Fixed resetting last scale time in HPA status. Fixes #16275.
2015-10-26 16:36:05 +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
55cbba3e51 Merge pull request #16234 from erictune/job-unit-fix
Auto commit by PR queue bot
2015-10-25 01:42:07 -07:00
k8s-merge-robot
0e1ee14cc8 Merge pull request #15705 from wojtek-t/watch_options_in_client
Auto commit by PR queue bot
2015-10-24 17:39:20 -07:00
k8s-merge-robot
a3187c7b21 Merge pull request #14794 from zhengguoyong/rename_wantsExternalLoadBalancer
Auto commit by PR queue bot
2015-10-24 13:46:27 -07:00
Wojciech Tyczynski
f4d75e0a0a Support timeout in watch requests 2015-10-24 13:12:49 +02:00
Eric Tune
07fb3c2759 Fix jobs unittest flakes.
Sometimes the test would
generate two identical pod names
using the Now().UnixNano() function.
Apparently the Nanos are rounded.

Passed 2000 unittest runs.
2015-10-24 00:54:45 -07:00
Saad Ali
f960b05fe1 Merge pull request #15930 from mikedanese/nc
make nodecontroller delete terminating pods on 1.0 nodes
2015-10-22 12:38:14 -07:00
eulerzgy
08785e0fd8 rename wantsExternalLoadBalancer 2015-10-22 15:03:57 +08:00
Jeff Lowdermilk
236193a26d Merge pull request #15944 from mqliang/assignoutloop
Move assignment statement out of loop
2015-10-21 13:19:56 -07:00
Mike Danese
836b68368b make nodecontroller delete terminating pods on 1.0 nodes 2015-10-21 13:07:03 -07: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
k8s-merge-robot
879d0ccce0 Merge pull request #15838 from soltysh/issue14500
Auto commit by PR queue bot
2015-10-21 03:13:42 -07:00
k8s-merge-robot
36e1b80e4a Merge pull request #14881 from lavalamp/fix-14617
Auto commit by PR queue bot
2015-10-20 14:14:18 -07:00
k8s-merge-robot
a096db5e8b Merge pull request #15933 from mqliang/HandleError
Auto commit by PR queue bot
2015-10-20 11:37:40 -07:00
mqliang
163860797d move assignment statement out of loop 2015-10-20 20:02:45 +08:00
Steve Milner
8da2d4002f Fixes remaining imports per #15319 2015-10-20 07:13:13 -04:00
mqliang
a656c0f8a4 add error handler when delete pod 2015-10-20 15:33:53 +08:00
feihujiang
a456b4c424 Remove useless codes about Minion kind 2015-10-19 19:29:45 +08:00
Maciej Szulik
1ee20363e0 An attempt to fix flake in TestControllerSyncJob (14500) 2015-10-19 12:46:33 +02:00
k8s-merge-robot
68717ddae0 Merge pull request #15659 from caesarxuchao/discovery-client
Auto commit by PR queue bot
2015-10-16 20:03:33 -07:00
Chao Xu
5859da3e1f add discovery client 2015-10-16 14:20:21 -07:00
k8s-merge-robot
a6634adc1c Merge pull request #15435 from zhengguoyong/adjust_package_name_pkgcloudprovider
Auto commit by PR queue bot
2015-10-16 08:30:32 -07: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
7ef2a1b293 Merge pull request #15427 from brendandburns/controllerversion
Auto commit by PR queue bot
2015-10-15 05:38:33 -07:00
k8s-merge-robot
081f05c207 Merge pull request #14575 from soltysh/jobs_podtemplate_not_pointer
Auto commit by PR queue bot
2015-10-15 03:28:19 -07:00
mqliang
45269bef8f return api.DaemonSetList, instead of an array 2015-10-15 14:49:52 +08:00
Brendan Burns
0c730f4ea7 update 2015-10-14 18:22:19 -07:00
Daniel Smith
4bdb1259a7 fix delta fifo & various fakes for go1.5.1 2015-10-14 16:07:46 -07:00
Brendan Burns
947a558320 Dynamically enable controllers based on what resources the server has.
Dynamically delete namespaces based on what resources the server has.
2015-10-14 15:53:19 -07: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
Wojciech Tyczynski
647aa1bc8c Unify per-resource List for unversioned client 2015-10-14 08:37:57 +02:00
Chao Xu
493d2b6920 grep sed Experimental() 2015-10-13 13:22:54 -07:00
Chao Xu
9aa163aa88 grep sed ExperimentalInterface 2015-10-13 13:22:22 -07:00
k8s-merge-robot
ae9f7c8ff8 Merge pull request #15426 from zhengguoyong/adjust_package_name_pkgcontroller
Auto commit by PR queue bot
2015-10-13 06:05:23 -07:00
Avesh Agarwal
8e4a8b7260 Addresses issue #6596.
Removes ForTesting_ReferencesAllowBlankSelfLinks.
Fixes controller's persistentvolumes unit tests.
2015-10-12 19:21:48 -04:00
Dawn Chen
00eb2e7bfc Merge pull request #15267 from nikhiljindal/deploymentRCSelector
Deployment: Fixing the selector for new RC created by deployment
2015-10-12 14:40:30 -07:00
nikhiljindal
6f61326cdb Fixing the selector for new RC created by deployment 2015-10-12 11:00:29 -07:00
derekwaynecarr
3c012db30f Add status subresource to HorizontalPodAutoscaler 2015-10-12 11:27:56 -04:00
eulerzgy
4ed5f9d240 adjust package name for pkg/controller directory 2015-10-12 09:51:27 +08:00
k8s-merge-robot
fa557f6101 Merge pull request #15409 from caesarxuchao/extension/v1beta1
Auto commit by PR queue bot
2015-10-10 09:03:43 -07:00
eulerzgy
8b174f7f33 adjust package name for pkg/cloudprovider 2015-10-10 16:44:54 +08:00
Mike Danese
66ddde9fea use an aggressive delete option when deleting pods in the pod garbage collector 2015-10-09 17:15:00 -07:00
Chao Xu
7c9f4cc42f experimental. -> extensions. 2015-10-09 15:49:10 -07:00
Chao Xu
f3caff2a79 testapi.Experimental -> testapi.Extensions 2015-10-09 15:15:35 -07:00
Chao Xu
67f316dd19 apis/experimental->apis/extensions 2015-10-09 15:04:41 -07:00
k8s-merge-robot
86fdc3f85c Merge pull request #15240 from mikedanese/job-fix-1
Auto commit by PR queue bot
2015-10-08 16:58:06 -07:00
k8s-merge-robot
8982776b54 Merge pull request #15237 from mikedanese/ds-bug-3
Auto commit by PR queue bot
2015-10-08 10:50:59 -07:00
Mike Danese
73f7242027 rename JobStatus.Unsuccessful => JobStatus.Failed, JobStatus.Successful => JobStatus.Succeeded 2015-10-08 10:41:22 -07:00
Piotr Szczesniak
952a058357 Merge pull request #15153 from wojtek-t/common_resync_period
Extend resyncPeriods in controllers in production.
2015-10-08 14:07:04 +02:00
k8s-merge-robot
f754f05bd6 Merge pull request #15257 from nikhiljindal/deploymentScaleDown
Auto commit by PR queue bot
2015-10-08 04:36:59 -07:00
Piotr Szczesniak
708102af36 Merge pull request #14714 from mqliang/node-misleading
Eliminate misleading code
2015-10-08 13:31:04 +02:00
Piotr Szczesniak
6217869085 Merge pull request #14672 from derekwaynecarr/rc_status
Add replication controller status subresource
2015-10-08 13:30:29 +02:00
Wojciech Tyczynski
df79026b79 Extend resyncPeriods in controllers in production. 2015-10-08 09:10:09 +02:00
nikhiljindal
b0b1a35aae Adding logic to scale down new RC 2015-10-07 15:53:47 -07:00
Mike Danese
e5fe0c0c6e revise meaning of DaemonsSpecStatus.CurrentNumberScheduled 2015-10-07 14:29:34 -07:00
Mike Danese
591d7c42a4 Merge pull request #15198 from mikedanese/ds-bug-2
include name match in mischeduled check in daemonset controller
2015-10-07 13:54:42 -07:00
Nikhil Jindal
c5d534e4f6 Merge pull request #15159 from ironcladlou/deployment-controller-tests
Add unit tests for deployment controller
2015-10-07 13:20:30 -07:00
derekwaynecarr
544b453e31 Add replication controller status subresource 2015-10-07 14:39:33 -04:00
k8s-merge-robot
eea83ee930 Merge pull request #14722 from mqliang/pod-sort
Auto commit by PR queue bot
2015-10-06 23:32:03 -07:00
Mike Danese
d601bfa1bb fix bug in daemonset 2015-10-06 18:18:18 -07:00
Mike Danese
5a441d4ad1 include name match in mischeduled check in daemonset controller 2015-10-06 17:01:54 -07:00
Dan Mace
007ca63c5b Add unit tests for deployment controller
Add some minimal unit tests for the deployment controller.
2015-10-06 10:35:28 -04:00
hzliangmingqiang
b1412997d6 Sort the daemon pods by creation time 2015-10-06 14:09:42 +08:00
hzliangmingqiang
4b79572f8e eliminate misleading code 2015-10-06 09:13:10 +08:00
mqliang
22eac85190 write log when two replication controller overlap 2015-10-06 09:01:05 +08:00
Alex Robinson
53067d0978 Merge pull request #14896 from davidopp/master
Fix race condition in DaemonSet controller. Fixes #14693.
2015-10-05 12:53:23 -07:00
Alex Robinson
9419bfb402 Merge pull request #14937 from krousey/flaky_job_controller
Removing custom test timeout
2015-10-05 10:34:34 -07:00
Jerzy Szczepkowski
f8b18b0a4c Improved logging for horizontal pod autoscaler.
Improved logging for horizontal pod autoscaler. Disabled redundant e2e test.
2015-10-05 16:26:14 +02:00
David Oppenheimer
723cb73057 Address reviewer comments. 2015-10-03 23:30:46 -07:00
k8s-merge-robot
7007481f00 Merge pull request #14917 from nikhiljindal/deploymentController
Auto commit by PR queue bot
2015-10-02 13:18:49 -07:00
k8s-merge-robot
e330b1197e Merge pull request #14459 from bprashanth/l7_ingress_resource_refactor
Auto commit by PR queue bot
2015-10-02 10:20:48 -07:00
k8s-merge-robot
562ea7160d Merge pull request #14664 from deads2k/fix-prepend
Auto commit by PR queue bot
2015-10-02 03:21:10 -07:00
k8s-merge-robot
e4164638c4 Merge pull request #14732 from jszczepkowski/hpa-api-fix
Auto commit by PR queue bot
2015-10-01 18:52:59 -07:00
k8s-merge-robot
2b1a0e98a2 Merge pull request #14746 from jszczepkowski/deployment-fix
Auto commit by PR queue bot
2015-10-01 18:23:12 -07:00
k8s-merge-robot
4e63cafde1 Merge pull request #14748 from gmarek/nodecontroller
Auto commit by PR queue bot
2015-10-01 17:38:53 -07:00
nikhiljindal
c6deb442f9 Adding events to deployment 2015-10-01 16:38:08 -07:00
Kris
d0aa9dfbc7 Removing custom test timeout 2015-10-01 14:35:58 -07:00
k8s-merge-robot
a463b34507 Merge pull request #14822 from jszczepkowski/events-cleaunp
Auto commit by PR queue bot
2015-10-01 09:22:59 -07:00
David Oppenheimer
29dd7e3bb8 Fix race condition in DaemonSet controller. Fixes #14693. 2015-10-01 02:17:52 -07:00
Nikhil Jindal
7adb463dd0 Merge pull request #14199 from nikhiljindal/deploymentDescribe
Adding a DeploymentDescriber to kubectl
2015-09-30 21:34:24 -07:00
Brendan Burns
2cc6901d7d Merge pull request #14798 from kubernetes/revert-14616-controller-framework-flake
Revert "Controller framework test flake fix"
2015-09-30 10:04:48 -07:00
Jerzy Szczepkowski
83ec04ef58 Improved event message for ServiceController.
Improved event message for ServiceController. Follow up of #13992.
2015-09-30 13:20:41 +02:00
gmarek
a3723e2045 Separate deletion and termination evictors in NodeController, and fix rate_limited_queue.go 2015-09-30 09:42:01 +02:00
David Oppenheimer
f86b119242 Merge pull request #14550 from mesosphere/sttts-fix-daemonset-tests
Fix bugs in daemonset controller and e2e tests
2015-09-30 00:37:46 -07:00
Brendan Burns
d82567de85 Revert "Controller framework test flake fix" 2015-09-29 20:17:16 -07:00
Brendan Burns
22fa2db39a Merge pull request #14616 from mvdan/controller-framework-flake
Controller framework test flake fix
2015-09-29 20:16:36 -07:00
Prashanth Balasubramanian
c148332772 Deleting namespace cleans-up Ingress 2015-09-29 18:51:55 -07:00
Jerzy Szczepkowski
e5b2f310fb Fixed ignoring the rest of deployments after the first error in deployment controller.
Fixed ignoring the rest of deployments after the first error in deployment controller & added logging of errors.
2015-09-29 17:09:33 +02:00
Jerzy Szczepkowski
a5194c5ff4 HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
2015-09-29 14:25:46 +02:00
deads2k
4cc63313e7 fix testclient prepend functions 2015-09-29 08:03:52 -04:00
nikhiljindal
153c57ffc8 Adding a DeploymentDescriber to kubectl 2015-09-28 14:21:24 -07:00
Mike Danese
2fa10f8ad6 delete job when namespace is deleted 2015-09-28 11:18:56 -07:00
Dr. Stefan Schimanski
a9582dfcbe Set NodeName on daemonset pods correctly
The pod template was overriding the NodeName.
2015-09-28 19:20:38 +02:00
Daniel Martí
fdd7322b38 Use DeleteDropWatch instead of Delete in test
Using the latter resulted in receiving extra OnDelete event callbacks. Using
DeleteDropWatch removed the flake.

Fixes #14138.
2015-09-26 11:55:34 -07:00
Daniel Martí
61e4eb4e1f Proper format string for ints 2015-09-26 11:52:33 -07:00
Daniel Martí
011db554e5 Simplify fake controller lock 2015-09-26 11:52:17 -07:00
Brian Grant
15c585e3ad Merge pull request #14578 from derekwaynecarr/fix_flake
Fix flake in gc test
2015-09-25 15:14:01 -07:00
derekwaynecarr
9bf88ddc6f Fix flake in gc test 2015-09-25 16:47:11 -04:00
Brian Grant
e3abcf7198 Merge pull request #14535 from derekwaynecarr/daemon_sets_status
DaemonSets adds a Status subresource
2015-09-25 13:30:55 -07:00
Brian Grant
2da7e8d41f Merge pull request #14316 from mikedanese/dedup
consolidate a bunch of FakePodControl testclients into a shared one
2015-09-25 13:29:13 -07:00
Brian Grant
0c278ce56a Merge pull request #14249 from markturansky/prov_claim_annotations
Allow pre-binding of Persistent Volumes to PVClaims
2015-09-25 13:26:29 -07:00
Brian Grant
f62432212a Merge pull request #14351 from zhengguoyong/del-unused-code
del the unused code
2015-09-25 13:16:06 -07:00
Brian Grant
44b0bb1ae7 Merge pull request #14325 from mikedanese/podgc
add pod garbage collection
2015-09-25 11:24:01 -07:00
Brian Grant
296888fb70 Merge pull request #14297 from derekwaynecarr/improve_namespace_controller
Improve conflict errors in namespace controller
2015-09-25 11:04:01 -07:00
derekwaynecarr
aead9d3291 DaemonSets adds a Status subresource 2015-09-25 12:13:54 -04:00
Mike Danese
824768d604 consolidate a bunch of FakePodControl testclients into a shared one 2015-09-24 23:21:20 -07:00
Mike Danese
376faea1cf add pod garbage collection 2015-09-24 22:47:53 -07:00
Brian Grant
26fe0823d5 Merge pull request #14250 from zhengguoyong/LoadBalancer
update createExternalLoadBalancer to createLoadBalancer
2015-09-24 18:27:35 -07:00
Chao Xu
ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Eric Tune
50f8f0c782 Merge pull request #14343 from erictune/job-update
Job update
2015-09-24 13:54:54 -07:00
derekwaynecarr
f92755acab Improve conflict errors in namespace controller 2015-09-24 10:52:55 -04:00
Jerzy Szczepkowski
c8238c079a E2E tests for horizontal pod autoscaler.
Fixes & tuning in horiontal pod autoscaler and its e2e tests; two of the tests added to "Autoscaling suite".
2015-09-24 14:14:35 +02:00
markturansky
f2378a2da7 shortened annotation key name, improved comments 2015-09-23 22:02:08 -04:00
Eric Tune
f899afb896 Merge pull request #14414 from socaa/unit
Unit tests for metrics_client.go
2015-09-23 16:25:42 -07:00
Brendan Burns
77fd388485 Increase a bunch of timeouts to reduce flakes 2015-09-23 11:09:03 -07:00
Ewa Socala
1c74b33042 Unit tests for metrics_client.go 2015-09-23 17:36:18 +02:00
markturansky
09600095c4 allow pre-binding of persistent volumes to pvclaims 2015-09-23 10:24:42 -04:00
eulerzgy
64f96e4c8c update createExternalLoadBalancer to createLoadBalancer 2015-09-23 11:09:54 +08:00
Eric Tune
6dbb781093 Merge pull request #14320 from erictune/fix-daemonset-logging
Reduce verbosity of DaemonSet controller.
2015-09-22 13:36:46 -07:00
Eric Tune
95a44be2ef Job status updates.
Added status REST storage.
Added validation for Status Updates.
Changed job controller to update status rather than just job
(which ignores status updates).
2015-09-22 11:39:35 -07:00
Eric Tune
b113b5ac2a Merge pull request #14336 from erictune/more-verbosity-job-controller
Log the error when unable to update job.
2015-09-22 11:03:11 -07:00
k8s-merge-robot
014947c16c Merge pull request #14322 from mikedanese/dead-code
Auto commit by PR queue bot
2015-09-22 07:05:27 -07:00
eulerzgy
91044f3bf2 del the unused code 2015-09-22 19:07:06 +08:00
Eric Tune
c99df5e3a4 Log the error when unable to update job. 2015-09-21 21:26:06 -07:00
Mike Danese
87cacda8a7 delete a bunch of dead code in pkg/controller 2015-09-21 16:38:43 -07:00