mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-25 20:30:32 +00:00
Automatic merge from submit-queue (batch tested with PRs 39834, 38665) Use parallel list for deleting items from a primitive list with merge strategy Implemented parallel list for deleting items from a primitive list with merge strategy. Ref: [design doc](https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#list-of-primitives) fixes #35163 and #32398 When using parallel list, we don't need to worry about version skew. When an old APIServer gets a new patch like: ```yaml metadata: $deleteFromPrimitiveList/finalizers: - b finalizers: - c ``` It won't fail and work as before, because the parallel list will be dropped during json decoding. Remaining issue: There is no check when creating a set (primitive list with merge strategy). Duplicates may get in. It happens in two cases: 1) Creation using POST 2) Creating a list that doesn't exist before using PATCH Fixing the first case is the beyond the scope of this PR. The second case can be fixed in this PR if we need that. cc: @pwittrock @kubernetes/kubectl @kubernetes/sig-api-machinery ```release-note Fix issue around merging lists of primitives when using PATCH or kubectl apply. ```