Closed
Description
If we would like to patch custom resource with some Spec
fields and Status
which are not empty, the controllerutil.CreateOrPatch patches Spec
only fields, but any Status
keep unchanged,
result
returns OperationResultUpdatedStatus
which means that both Spec
and Status
where updated
The reason why this happens is that the original Status
of the object is returned when the" Patch "procedure is exited and, as a result, no Status
fields are updated
Metadata
Metadata
Assignees
Labels
No labels