Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipam: Warn when failing to update CN status
This commit attempts to improve the readability and debugability of (*Node).syncToAPIServer(). The main motivation for this change is to fix the swallowing of the error when UpdateStatus fails, and the subsequent Get succeeds. To that end, this commit adds a warning log msg and propagates the error in case we never succeed, to surface any trouble with updating the status of the CiliumNode (CN) resource. Failures in updating the status can be indicative of general connectivity problems in ENI and Azure IPAM modes. As seen in cilium#13193, it can also lead to Cilium never becoming ready because the agent was never able to retrieve ENI information required to make allocations, etc. (The former was caused by the Operator being blocked from "publishing" the ENI information into the CN resource, which is why the agent was unable to retrieve it.) Signed-off-by: Chris Tarazi <chris@isovalent.com>
- Loading branch information