• Kubernetes Submit Queue's avatar
    Merge pull request #35567 from mwielgus/allowed_disruptions_b2 · f0ca9fbd
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Switch DisruptionBudget api from bool to int allowed disruptions [only v1beta1]
    
    Continuation of #34546. Apparently it there is some bug that prevents us from having 2 different incompatibile version of API in integration tests. So in this PR v1alpha1 is removed until testing infrastructure is fixed.
    
    Base PR comment:
    
    Currently there is a single bool in disruption budget api that denotes whether 1 pod can be deleted or not. Every time a pod is deleted the apiserver filps the bool to false and the disruptionbudget controller sets it to true if more deletions are allowed. This works but it is far from optimal when the user wants to delete multiple pods (for example, by decreasing replicaset size from 10000 to 8000).
    This PR adds a new api version v1beta1 and changes bool to int which contains a number of pods that can be deleted at once.
    
    cc: @davidopp @mml @wojtek-t @fgrzadkowski @caesarxuchao
    f0ca9fbd
Name
Last commit
Last update
..
cache Loading commit data...
chaosclient Loading commit data...
clientset_generated Loading commit data...
leaderelection Loading commit data...
listers Loading commit data...
metrics Loading commit data...
record Loading commit data...
restclient Loading commit data...
retry Loading commit data...
testdata Loading commit data...
testing Loading commit data...
transport Loading commit data...
typed Loading commit data...
unversioned Loading commit data...
OWNERS Loading commit data...