Prashanth B
8ff3182fd4
Update OWNERS
2016-12-12 17:55:18 -08:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Clayton Coleman
c52d510a24
refactor: generated
2016-12-10 18:05:53 -05:00
Clayton Coleman
42d410fdde
Switch to use pkg/apis/meta/v1/unstructured and the new interfaces
...
Avoid directly accessing an unstructured type if it is not required.
2016-12-10 18:05:28 -05:00
Wojciech Tyczynski
e8d1cba875
GetOptions in client calls
2016-12-09 09:42:01 +01:00
Dr. Stefan Schimanski
2dff13f332
Update generated files
2016-12-05 12:42:31 +01:00
Dr. Stefan Schimanski
24e24fc7bb
Add verb support to gc and namespace controllers
2016-12-05 12:36:05 +01:00
Dr. Stefan Schimanski
458d2b2fe4
Add verb support for discovery client
2016-12-05 12:36:05 +01:00
Dr. Stefan Schimanski
4d1d98c49a
Remove namespace controller pod precedence
2016-12-05 12:36:05 +01:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Jordan Liggitt
79ec8ae654
hold namespaces briefly before processing deletion
2016-11-28 11:35:09 -05:00
Clayton Coleman
35a6bfbcee
generated: refactor
2016-11-23 22:30:47 -06:00
Chao Xu
bcc783c594
run hack/update-all.sh
2016-11-23 15:53:09 -08:00
Chao Xu
7eeb71f698
cmd/kube-controller-manager
2016-11-23 15:53:09 -08:00
Brendan Burns
ef6529bf2f
make groupVersionResource listing dynamic when third party resources are
...
enabled.
2016-11-20 20:48:57 -08:00
Andy Goldstein
4855917bc3
Fix possible race in operationNotSupportedCache
...
Because we can run multiple workers to delete namespaces simultaneously, the
operationNotSupportedCache needs to be guarded with a mutex to avoid concurrent
map read/write errors.
2016-11-04 14:11:54 -04:00
Derek Carr
d2311ecf71
Update OWNERS
2016-11-02 16:19:21 -07:00
Antoine Pelisse
db35acde19
Update OWNERS: Remove reviewers: pkg/controller
2016-11-02 16:19:19 -07:00
Antoine Pelisse
c695a54c1c
Update OWNERS approvers and reviewers: pkg/controller
2016-11-02 16:19:18 -07:00
derekwaynecarr
e634312de4
Fix potential panic in namespace controller when rapidly create/delete namespace of same name
2016-10-25 13:51:27 -04:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
Jan Chaloupka
6079053407
Update clientset generator to use RESTClient interface instead of the RESTClient data type
2016-10-21 10:13:51 +02:00
Clayton Coleman
97c35fcc67
Allow garbage collection to work against different API prefixes
...
The GC needs to build clients based only on Resource or Kind. Hoist the
restmapper out of the controller and the clientpool, support a new
ClientForGroupVersionKind and ClientForGroupVersionResource, and use the
appropriate one in both places.
2016-09-22 15:00:58 -04:00
Mike Danese
a765d59932
move informer and controller to pkg/client/cache
...
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-09-15 12:50:08 -07:00
Kubernetes Submit Queue
c1f47581fa
Merge pull request #32524 from derekwaynecarr/ns-controller-finalizer
...
Automatic merge from submit-queue
Namespace Controller handles items with finalizers gracefully
This PR does the following:
1. ensures the "orphan" finalizer is not added to items during DELETE COLLECTION calls
2. does not treat presence of a finalizer as an unexpected error condition.
The 15s wait should only happen when finalizers not added by GC are used.
I am aware of any finalizer like that at this time.
Fixes https://github.com/kubernetes/kubernetes/issues/32519
2016-09-12 19:07:06 -07:00
derekwaynecarr
80d8c330e6
Namespace controller does not treat objects with finalizers as an error condition
2016-09-12 17:30:00 -04:00
lojies
9498b227a1
change infof to Errorf in some codes
2016-09-12 15:55:42 +08:00
Kubernetes Submit Queue
43093609c1
Merge pull request #31917 from derekwaynecarr/delete-pods-last
...
Automatic merge from submit-queue
Namespace controller deletes pods last
I think this fixes https://github.com/kubernetes/kubernetes/issues/29308 or at least helps further reduce the incidence.
This PR changes the order in which namespace controller prioritizes resources for deletion. It deletes all resources before deleting pods. The rationale for this change is to broadcast deletion of controllers that spawn pods first rather than trip those controllers up into thinking they should spawn more pods which would increase the risk of causing races with the `NamespaceLifecycle` admission plug-in. Many of those controllers also are not rate-limited in the face of rejection, so rather than promote a situation where they are rejected, we promote a situation that removes those things first.
2016-09-02 00:50:02 -07:00
derekwaynecarr
698e151229
Namespace controller deletes pods last
2016-09-01 17:04:54 -04:00
derekwaynecarr
f42ee94554
Ignore v1 bindings in namespace controller deletion
2016-09-01 16:10:51 -04:00
deads2k
4317173d3f
add names for workqueues to gather controller latency/depth metrics
2016-08-30 09:51:50 -04:00
Chao Xu
4d2350632c
only store typeMeta and objectMeta in the gc store
2016-08-08 17:23:13 -07:00
Klaus Ma
99c0681ecc
Removed empty line.
2016-07-29 23:19:33 +08:00
Davanum Srinivas
2b0ed014b7
Use Go canonical import paths
...
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-16 13:48:21 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Oleg Shaldybin
1f48cd27e7
Expect namespace deletion in NamespaceController
...
Using new fake clientset registry exposes the actual flow on pending
namespace finalization: get namespace, create finalizer, list pods and
delete namespace if there are no pods.
2016-06-28 11:54:13 -07:00
k8s-merge-robot
7fae9c14e2
Merge pull request #25662 from deads2k/prevent-hotloop
...
Automatic merge from submit-queue
prevent namespace cleanup hotloop
Found chasing a sentry report. Looks like we hot-loop on namespace deletion failures.
@derekwaynecarr ptal
2016-05-28 01:30:51 -07:00
deads2k
7a7fe3abb8
prevent namespace cleanup hotloop
2016-05-17 11:04:48 -04:00
Chao Xu
c73406bcfe
the garbage collector controller
2016-05-15 16:04:19 -07:00
Wojciech Tyczynski
2706df102b
Merge pull request #25465 from wojtek-t/client_renegotiation
...
Support renegotiation in client based on response ContentType
2016-05-12 10:21:10 +02:00
Wojciech Tyczynski
5d046fed41
Fix tests for renegotiation
2016-05-12 08:21:11 +02:00
Chao Xu
c7d111280f
let dynamic client take runtime.Object instead of v1.ListOptions
2016-05-10 16:05:31 -07:00
Kris
28132be07e
Redo Unstructured to have accessor methods
...
Add accessor methods that implement pkg/api/unversioned.ObjectKind,
pkg/api/meta.Object, pkg/api/meta.Type and pkg/api/meta.List.
Removed the convenience fields since writing to them was not reflected
in serialized JSON.
2016-05-03 14:07:28 -07:00
gmarek
3171aac57c
Generated clients can return their RESTClients, RESTClient can return its RateLimiter
2016-04-27 22:15:10 +02:00
Chao Xu
8537095415
use fully qualified resource in fake clients actions
2016-04-20 19:44:40 -07:00
k8s-merge-robot
db28f73c3b
Merge pull request #24282 from goltermann/spelling
...
Automatic merge from submit-queue
Fix misspellings in comments
2016-04-19 03:47:07 -07:00
goltermann
c226c9435b
Fix misspellings in comments.
...
https://goreportcard.com/report/k8s.io/kubernetes#misspell
2016-04-14 13:57:45 -07:00
Chao Xu
31cd4c124d
handle empty perferredVersion
2016-04-13 13:18:31 -07:00
Jordan Liggitt
655048add9
Decrease verbosity of namespace controller trace logging
2016-03-12 22:56:31 -05:00
Kris
dbde4fd798
Move the discovery client to its own package
2016-03-04 13:44:52 -08:00
derekwaynecarr
beace2dbad
Fix incorrect logging string that could cause confusion
2016-03-02 23:42:33 -05:00
derekwaynecarr
41057b02d5
Move namespace controller to use discovery and dynamic client
2016-03-02 23:34:18 -05:00
derekwaynecarr
a301a2565e
Namespace controller error handling improvements
2016-02-26 14:08:28 -05:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
Chao Xu
97aecd002a
remove underscore in imported pkg names
2016-02-16 10:54:51 -08:00
mqliang
4f24ea65f2
delete replicaset when delete namespace
2016-02-12 00:20:10 +08:00
Paul Morie
3a505ac364
Make namespace controller delete configMaps in namespace
2016-02-10 10:52:24 -05:00
derekwaynecarr
106693d9b3
Refactor namespace controller to use workers, do more delete collection calls
2016-02-09 16:39:13 -05: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
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
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00
gmarek
0c191e787b
Split controller flags between controllers
2016-02-05 12:17:51 +01:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -08:00
Chao Xu
f9f5736b01
grep sed
2016-02-03 13:06:07 -08:00
Chao Xu
fe7887f1ec
replace the client with clientset in controllers
2016-02-02 20:28:45 -08:00
harry
1032067ff9
Replace runtime reference by pkg
2016-02-01 21:06:44 +08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Wojciech Tyczynski
f28bb68d8c
Support collection deletion in apiserver.
2015-12-10 09:46:25 +01:00
Wojciech Tyczynski
b0fcb5adef
Pass ListOptions to List in ListWatch.
2015-12-07 11:53:53 +01:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +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
Wojciech Tyczynski
b6ef62af24
Use unversioned.ListOptions in clients.
2015-11-24 16:52:09 +01:00
derekwaynecarr
745c58e788
Namespace controller should always get latest state prior to deletion
2015-11-06 11:43:56 -05:00
Wojciech Tyczynski
d47e21f19f
Reuse TCP connections in Reflector between resync periods.
2015-10-26 19:35:25 +01:00
Janet Kuo
54b743bc05
Change resource "ingress" to "ingresses" in URL path and kubectl
2015-10-25 16:54:25 -07:00
Wojciech Tyczynski
f4d75e0a0a
Support timeout in watch requests
2015-10-24 13:12:49 +02:00
Chao Xu
5859da3e1f
add discovery client
2015-10-16 14:20:21 -07:00
Brendan Burns
0c730f4ea7
update
2015-10-14 18:22:19 -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
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
eulerzgy
4ed5f9d240
adjust package name for pkg/controller directory
2015-10-12 09:51:27 +08:00
Wojciech Tyczynski
df79026b79
Extend resyncPeriods in controllers in production.
2015-10-08 09:10:09 +02:00
Prashanth Balasubramanian
c148332772
Deleting namespace cleans-up Ingress
2015-09-29 18:51:55 -07:00
Mike Danese
2fa10f8ad6
delete job when namespace is deleted
2015-09-28 11:18:56 -07:00
derekwaynecarr
f92755acab
Improve conflict errors in namespace controller
2015-09-24 10:52:55 -04:00
Daniel Martí
586cb9126a
Move pkg/util.Time to pkg/api/unversioned.Time
...
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Mike Danese
4e9a6c4c4b
rename method as part of renaming daemon to daemonset
2015-09-15 11:43:15 -07:00
Daniel Smith
b225c1d47a
Run gofmt (separate commit for easy rebases)
2015-09-10 17:17:59 -07:00
Daniel Smith
15b30b8b09
Move version agnostic parts of client
...
pkg/client/unversioned/cache -> pkg/client/cache
pkg/client/unversioned/record -> pkg/client/record
2015-09-10 17:17:59 -07:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Mike Danese
bf881f187e
rename expapi.Daemon to expapi.DaemonSet
2015-09-10 08:34:26 -07:00
Jerzy Szczepkowski
6998247e1b
Implemented removal of Deployments, Daemons & HorizontalPodAutoscalers when Namespace is removed.
...
Implemented removal of Deployments, Daemons & HorizontalPodAutoscalers when Namespace is removed. Added unittest. Fixes #12735 .
2015-09-09 10:59:43 +02:00
deads2k
7e180c258d
update testclient for delegating reaction chain
2015-09-01 12:58:35 -04:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Clayton Coleman
62b6ca1643
Namespace must estimate and requeue content deletions
2015-08-10 11:20:21 -04:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
deads2k
182885e897
make testclient more precise
2015-08-04 13:35:59 -04:00
gmarek
d27ad5b714
Controller codebase refactoring
2015-08-03 17:06:25 +02:00