1
0
mirror of https://github.com/rancher/norman.git synced 2025-06-27 15:57:00 +00:00
Commit Graph

30 Commits

Author SHA1 Message Date
Darren Shepherd
c580ac3ab0
Merge pull request #201 from ukinau/Enable-fine-grained-control-for-controller-related-metrics
Enable fine-grained control for Controller related metrics
2018-10-04 14:18:49 -07:00
Yuki Nishiwaki
b18da6edc4 Allow to put Reason in controller.ForgetError
Norman Condition automatically generate condition information based on
the error the handler would return in Condition.Do function.
handler function usually return 2 types of error. the error can be
ignored and the error can not be ignored.
According to current implementation, Condition.Do function generate
condition with error state even if handler return error can be ignored.
The error that can be ignored should be ignored in the context of
condition as well.

So this commit introduce new field which is Reason to ForgetError so
that the developer can put special reason other than Error when
ForgetError is expected to happen by expected procedure like
provisioning and wait for something and Norman Condintion respect to
this field when try to generate condition information based on error

This solution will help us to fix this rancher bug
https://github.com/rancher/rancher/issues/15907
2018-10-03 02:44:42 +09:00
Yuki Nishiwaki
f103a35307 Enable fine-grained control for Controller related metrics 2018-09-26 11:51:51 +09:00
Alena Prokharchyk
1d3cf7aee8 Log forget error in debug 2018-08-25 15:44:50 -07:00
Bill Maxwell
de9510b940 Default to noop metric provider
With the built in prom. metrics provider, the k8s machinery doesnt
deregister metrics when controllers are removed. So over time as
things like clusters are created or removed the metrics are not
cleaned up. The metrics types for the cache and queue are also
very large. They can take ~1GB of RAM in a 100 cluster setup.

Also, Rancher is not exposing these stats so they are unobservable.
2018-07-27 12:50:44 -07:00
Darren Shepherd
88e3507f72 Change some logging to debug
# Conflicts:
#	controller/generic_controller.go
#	vendor.conf
2018-07-19 10:23:17 -07:00
Alena Prokharchyk
26d279bce1 Fixes to adapt to 1.10.5 2018-07-11 16:44:45 -07:00
Craig Jellick
388faeb89e Use logrus to log errors and panics
This changes the framework from using glog to using logrus, which is
what the rest of code uses.
2018-06-22 16:19:49 -07:00
Darren Shepherd
8d5d75c7b8 Check namespace for clusterName 2018-04-30 14:36:00 -07:00
kinarashah
93bfc4ea3a Check for cluster name in annotations 2018-04-06 10:21:13 -07:00
Darren Shepherd
50ffce9804 Add namespace indexer to controllers 2018-04-04 03:08:15 -07:00
Darren Shepherd
ff60298f31 Move ObjectClient to different package 2018-04-03 14:09:16 -07:00
Darren Shepherd
fcf2b88855 Add some debug logging to see churn 2018-03-23 09:44:24 -07:00
Darren Shepherd
b5aef8d08d Don't log conflicts as much 2018-03-22 15:55:44 -07:00
Darren Shepherd
1e9982bd45 Change NewErrors signature 2018-03-03 21:53:38 -07:00
Darren Shepherd
0f7c2968c9 Make controller and client more generic 2018-02-13 08:57:47 -07:00
Darren Shepherd
ef71925351 Update rate limit on the controller 2018-01-21 06:24:22 +00:00
Darren Shepherd
9e6ea56442 Changes to make conditions less chatty 2018-01-17 22:44:12 +00:00
Craig Jellick
905797b50f Add suport for cluster scoped controllers
Some worload controllers need to watch resoruces in the mangement plane
and react to them. But, they should only react to resources that
correspond to their cluster. This adds framework support for that.
2018-01-16 09:04:15 -07:00
Darren Shepherd
af105c2bc7 Add name to handlers 2018-01-16 05:10:36 +00:00
Craig Jellick
6e00d528c2 Do print controller name when logging error 2017-12-29 21:57:12 +00:00
Darren Shepherd
2550f12a9a Add offspring controller 2017-12-19 21:44:02 -07:00
Darren Shepherd
227e9f7ca0 Add ignorable error to bypass requeue 2017-12-16 01:30:46 -07:00
Darren Shepherd
ee148b4d18 Startup helper method 2017-11-28 18:58:49 -07:00
Darren Shepherd
247d4fe74b Fix startup issues 2017-11-28 18:25:18 -07:00
Darren Shepherd
389d27b3e5 Updates 2017-11-28 14:28:25 -07:00
Darren Shepherd
59d2d58c3e Fix code generator 2017-11-21 16:16:52 -07:00
Darren Shepherd
38c9c5c6c3 Subcontext and mapping updates 2017-11-21 15:37:22 -07:00
Darren Shepherd
9cb51e9a46 Generate clients in clientset style 2017-11-13 12:50:25 -07:00
Darren Shepherd
c8cab3f4f8 More initial dev 2017-11-10 21:46:30 -07:00