kubernetes/pkg/controller
Kubernetes Submit Queue 71c918d95c Merge pull request #40143 from peay/event-when-cronjob-cannot-start
Automatic merge from submit-queue (batch tested with PRs 40196, 40143, 40277)

Emit warning event when CronJob cannot determine starting time

**What this PR does / why we need it**:
In #39608, we've modified the error message for when a CronJob has too many unmet starting times to enumerate to figure out the next starting time. This makes it more "actionable", and the user can now set a deadline to avoid running into this. However, the error message is still only controller level AFAIK and thus not exposed to the user. From his perspective, there is no way to tell why the CronJob is not scheduling the next instance.

The PR adds a warning event in addition to the error in the controller manager's log. 

**Which issue this PR fixes**: This is an addition to PR #39608  regarding #36311.

**Special notes for your reviewer**: cc @soltysh 

**Release note**:

```release-note
```
2017-01-23 05:39:03 -08:00
..
certificates move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
cloud refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
cronjob Merge pull request #40143 from peay/event-when-cronjob-cannot-start 2017-01-23 05:39:03 -08:00
daemon move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
deployment move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
disruption move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
endpoint move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
garbagecollector find and replace 2017-01-20 08:04:53 -05:00
informers move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
job move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
namespace find and replace 2017-01-20 08:04:53 -05:00
node move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
podautoscaler find and replace 2017-01-20 08:04:53 -05:00
podgc move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
replicaset move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
replication move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
resourcequota refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
route move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
scheduledjob Merge pull request #35833 from apelisse/owners-pkg-controller 2016-12-12 18:51:33 -08:00
service move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
serviceaccount move listers out of cache to reduce import tree 2017-01-20 15:01:38 -05:00
statefulset Merge pull request #40237 from derekwaynecarr/remove_pet 2017-01-20 14:22:52 -08:00
volume Allow for returning map[string]interface{} from patch. 2017-01-18 11:53:30 +01:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD find and replace 2017-01-20 08:04:53 -05:00
client_builder.go find and replace 2017-01-20 08:04:53 -05:00
controller_ref_manager.go refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
controller_utils_test.go find and replace 2017-01-20 08:04:53 -05:00
controller_utils.go move utils used in restclient to client-go 2017-01-19 07:55:14 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
lookup_cache.go Move APIs and core code to use metav1.ObjectMeta 2017-01-17 16:17:18 -05:00
OWNERS update owners 2016-11-02 16:19:30 -07:00