Remove deprecated code in the patching function
What it does
Resources managed by the operator are applied by applyManagedResource. This function was patching resources with the line r.Patch(ctx, obj, client.Apply, client.ForceOwnership, client.FieldOwner(fieldOwner)). This code is deprecated now (see link). Apply should be used instead of Patch
The present MR is
- Adding comments for clarity( at least from the author point of view)
- Using uptodate Apply instead of Patch in both the operator controller and in the tests. The code is based on this example
References
It closes #94 (closed)
Tests
- CI Tests
Edited by vladimir braquet