Fix: Prevent Silent Failures by Propagating KRM Function Errors in Specializers#1098
Conversation
Signed-off-by: pulkitvats2007-crypto <pulkitvats2007@gmail.com>
|
Hi @pulkitvats2007-crypto. Thanks for your PR. I'm waiting for a nephio-project member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: efiacor The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Previously, errors from KRM function pipelines (IPAM, VLAN, Generic specializers) were logged but ignored.
This caused the controller to continue reconciliation and commit partially processed or invalid resources to Porch, while incorrectly reporting success.
This PR fixes the issue by returning errors from
r.krmfn.Process(rl)directly to controller-runtime, ensuring failed reconciliations are retried and no corrupted state is committed.Root Cause
ctrl.Result{}, nilprevented retries, causing silent failures.Fix
Applied Across
Ensures
Tests
go test ./...Impact
Fixes kptdev/porch#807