Closed Liujingfang1 closed 2 years ago
The default inventory provider was deliberately StatusPolicyNone, because the custom inventory provider tests StatusPolicyAll. Why change it?
We injected the apply status into the inventory configmap. If the passed in []ObjectStatus
is empty, it throws an error. Updated the code to allow this.
You might want to add some unit tests that test a custom provider so that we know the status update works when StatusPolicyAll and doesn't write them when StatusPolicyNone.
Added an updated unit tests for this.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: karlkfi, Liujingfang1
The full list of commands accepted by this bot can be found here.
The pull request process is described here
This reduces the request size when StatusPolicyNone is used