• Kubernetes Submit Queue's avatar
    Merge pull request #40143 from peay/event-when-cronjob-cannot-start · 71c918d9
    Kubernetes Submit Queue authored
    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
    ```
    71c918d9
Name
Last commit
Last update
..
certificates Loading commit data...
cloud Loading commit data...
cronjob Loading commit data...
daemon Loading commit data...
deployment Loading commit data...
disruption Loading commit data...
endpoint Loading commit data...
garbagecollector Loading commit data...
informers Loading commit data...
job Loading commit data...
namespace Loading commit data...
node Loading commit data...
podautoscaler Loading commit data...
podgc Loading commit data...
replicaset Loading commit data...
replication Loading commit data...
resourcequota Loading commit data...
route Loading commit data...
scheduledjob Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
statefulset Loading commit data...
volume Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
client_builder.go Loading commit data...
controller_ref_manager.go Loading commit data...
controller_utils.go Loading commit data...
controller_utils_test.go Loading commit data...
doc.go Loading commit data...
lookup_cache.go Loading commit data...