• Kubernetes Submit Queue's avatar
    Merge pull request #52091 from clamoriniere1A/bugfix/jobcontroller_backoff · 26d72847
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 52091, 52071)
    
    Bugfix: Improve how JobController use queue for backoff
    
    **What this PR does / why we need it**:
    
    In some cases,  the backoff delay for a given Job is reset unnecessarily. 
    
    the PR improves how JobController uses queue for backoff:
    - Centralize the key "forget" and "re-queue" process in only on method.
    - Change the signature of the syncJob method in order to return the
    information if it is necessary to forget the backoff delay for a given
    key.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    Links to #51153
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    ```
    26d72847
Name
Last commit
Last update
..
bootstrap Loading commit data...
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...
history 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...
service Loading commit data...
serviceaccount Loading commit data...
statefulset Loading commit data...
testutil Loading commit data...
ttl 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_ref_manager_test.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...