Han Kang
2bbd445f50
remove rate limiter metric as it is not in use
...
Change-Id: I91157653e3860eeecc3f572aee88da6ffc65faed
2022-10-13 13:07:11 -07:00
Shihang Zhang
fb6c727fde
no auto-generation of secret-based service account token
2022-02-23 14:17:30 -08:00
cici37
95acec5a3b
Move client_builder to k8s.io/controller-manager
2020-10-19 14:48:22 -07:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Mike Danese
76f8594378
more artisanal fixes
...
Most of these could have been refactored automatically but it wouldn't
have been uglier. The unsophisticated tooling left lots of unnecessary
struct -> pointer -> struct transitions.
2020-03-05 14:59:47 -08:00
Mike Danese
25651408ae
generated: run refactor
2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08:00
Clayton Coleman
dc0c21c7d7
serviceaccount: If namespace is terminating, ignore create errors
...
In some scenarios the service account and token controllers can
race with namespace deletion, causing a burst of errors as they
attempt to recreate secrets being deleted.
Instead, detect these errors and do not retry.
2019-10-20 18:39:00 -04:00
Yassine TIJANI
c1487840bc
move util/metrics to component-base
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-10-08 14:42:31 +02:00
chenyaqi01
66be69bb0e
replace bytes.Compare() with bytes.Equal()
2019-09-27 10:08:49 +08:00
Yassine TIJANI
7e4c3096fe
move WaitForCacheSync to the sharedInformer package
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-08-22 16:13:41 +01:00
SataQiu
b87d006a50
fix golint failures of pkg/controller/namespace/deletion pkg/controller/serviceaccount
2019-05-23 12:09:01 +08:00
Davanum Srinivas
7b8c9acc09
remove unused code
...
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Mike Danese
7d74c35963
svcacct: move claim generation out of TokenGenerator
2018-02-06 13:19:54 -08:00
Ferran Rodenas
d67898b875
Check RegisterMetricAndTrackRateLimiterUsage error when starting controllers
...
Signed-off-by: Ferran Rodenas <rodenasf@vmware.com>
2017-11-01 12:46:07 +01:00
Kevin
4c8539cece
use core client with explicit version globally
2017-10-27 15:48:32 +08:00
ymqytw
7500b55ce4
move retry to client-go
2017-08-14 14:16:26 -07:00
FengyunPan
e4cb9a0824
Fix registered ownerName in prometheus
...
TokensController and ServiceAccountsController use same name to
register metric ownerName in prometheus.
2017-07-26 21:25:52 +08:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Clayton Coleman
784e3ae5fa
Switch the tokens controller to use shared informers
...
Tokens controller previously needed a bit of extra help in order to be
safe for concurrent use. The new MutationCache allows it to keep a local
cache and still use a shared informer. The filtering event handler lets
it only see changes to secrets it cares about.
2017-05-20 14:19:49 -04:00
Jordan Liggitt
12dce04a3b
Retry secret reference addition on conflict
2017-04-18 14:17:17 -04:00
deads2k
2c1c0f3f72
move workqueue to client-go
2017-01-30 09:08:21 -05:00
deads2k
b0b156b381
make tools/cache authoritative
2017-01-25 08:29:45 -05:00
Clayton Coleman
be6d2933df
refactor: Move *Options references to metav1
2017-01-24 13:41:51 -05:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
deads2k
11e8068d3f
move pkg/fields to apimachinery
2017-01-19 09:50:16 -05:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
deads2k
77b4d55982
mechanical
2017-01-16 09:35:12 -05:00
Klaus Ma
25fe1e0d82
Made cache.Controller to be interface.
2017-01-13 13:33:23 +08:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
NickrenREN
639572ac68
fix redundant alias and remove unused function
2017-01-09 17:13:09 +08:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00
Wojciech Tyczynski
e8d1cba875
GetOptions in client calls
2016-12-09 09:42:01 +01:00
Chao Xu
7eeb71f698
cmd/kube-controller-manager
2016-11-23 15:53:09 -08: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
Chao Xu
fbd187af45
move the retry util out of pkg/client/unversioned
2016-10-13 16:10:24 -07:00
deads2k
561f8d75a5
move core resource registry packages
2016-09-21 10:11:50 -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
deads2k
4317173d3f
add names for workqueues to gather controller latency/depth metrics
2016-08-30 09:51:50 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Jordan Liggitt
f45d9dc2f8
Convert service account token controller to use a work queue
2016-06-27 13:01:24 -04:00
gmarek
3171aac57c
Generated clients can return their RESTClients, RESTClient can return its RateLimiter
2016-04-27 22:15:10 +02:00
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -08:00
Jordan Liggitt
bd552c99c5
Remove cache-based short-circuit of token cleanup
2016-02-29 00:25:49 -05:00
Jordan Liggitt
92bf353496
Ensure created service account tokens are available to the token controller
2016-02-22 16:22:51 -05:00
Jordan Liggitt
20216fa607
Provide current namespace to InClusterConfig
2016-02-11 15:51:31 -05:00
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00