Closed
Description
Right now, we have some lists that are marked as listType=map
that are not strictly maps in Kubernetes. In that case, everything goes wrong in smd because the list is invalid (and can't be handled), so it's fully rejected. We can't even track the fields, which causes us to fail and return an error which is ignored by Kubernetes, and the managed fields are entirely reset.
Unfortunately, it means that objects that have such a list can't be server-side applied at all. We think it'd be simpler to merely ignore these (fairly rare) occurences and try to do the best thing possibe rather than fail.
This means:
- When we validate an object with such a list, we should probably not fail altogether (though we should probably reject a request to server-side apply an object like this).
- When tracking the fields, we should give duplicate fields to the same owner.
- When server-side applying without the field, we need to be careful about how the field should be removed.
- When we merge a list that has such a field, we need to be careful, especially if the server-side apply contains the field (should we remove both other occurences? Probably).
Metadata
Metadata
Assignees
Labels
No labels