A CRD has a status sub-resource with a required integer field: status.IntField
When trying to patch the status for the first time with status.IntField=0 the diff given by patch.Data(obj) does not consider the zero value as part of the patch to be applied and the request via mergeFromPatch client.Status().Patch fails with is invalid: status.IntField: Required value
Is the only way to go to make IntField a pointer?
A CRD has a status sub-resource with a required integer field:
status.IntFieldWhen trying to patch the status for the first time with
status.IntField=0the diff given bypatch.Data(obj)does not consider the zero value as part of the patch to be applied and the request viamergeFromPatchclient.Status().Patchfails withis invalid: status.IntField: Required valueIs the only way to go to make
IntFielda pointer?