-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/nodediscovery: Updates updateCiliumNodeResource() Warning Message #30257
Conversation
Previously, updateCiliumNodeResource() would emit a warning message whenever the k8s client could not get the local CiliumNode resource from the k8s api server. This caused the following benign log message for new installations since the CiliumNode resource has yet to be created: `level=warning msg="Unable to get node resource" error="ciliumnodes.cilium.io \"kind-control-plane\" not found" subsys=nodediscovery` This PR updates updateCiliumNodeResource() to only generate the warning message when the maximum number of attempts has been reached. Fixes: cilium#29330 Signed-off-by: Daneyon Hansen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good to me.
A bit curious if we should still log the 'attempts' with a better message like "CiliumNode resources not ready: trying %d more times" or something like this.
That maybe too much non-actionable info tho.
/test |
@ldelossa thanks for the review! I have no objection to adding an info-level log message similar to what you suggest if others agree. |
@danehans - Lets merge this in right no since it's a release blocker. We can add the extra logging in a subsequent PR. |
Previously, updateCiliumNodeResource() would emit a warning message whenever the k8s client could not get the local CiliumNode resource from the k8s api server. This caused the following benign log message for new installations since the CiliumNode resource has yet to be created:
level=warning msg="Unable to get node resource" error="ciliumnodes.cilium.io \"kind-control-plane\" not found" subsys=nodediscovery
This PR updates updateCiliumNodeResource() to only generate the warning message when the maximum number of attempts has been reached.
Fixes: #29330