• Kubernetes Submit Queue's avatar
    Merge pull request #35647 from ymqytw/patch_primitive_list · 3e169be8
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Fix strategic patch for list of primitive type with merge sementic
    
    Fix strategic patch for list of primitive type when the patch strategy is `merge`.
    Before: we cannot replace or delete an item in a list of primitive, e.g. string, when the patch strategy is `merge`. It will always append new items to the list.
    This patch will generate a map to update the list of primitive type.
    The server with this patch will accept either a new patch or an old patch.
    The client will found out the APIserver version before generate the patch.
    
    Fixes #35163, #32398
    
    cc: @pwittrock @fabianofranz 
    
    ``` release-note
    Fix strategic patch for list of primitive type when patch strategy is `merge` to remove deleted objects.
    ```
    3e169be8
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...