Cleanup a few places where we used Warningf with %w

Fixing up a few places where we used the wrong marker.
This commit is contained in:
justinsb 2023-09-18 11:02:18 -04:00
parent f80a66903b
commit 0096451a83
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ func (r *GCEIPAMReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
node := &corev1.Node{}
if err := r.client.Get(ctx, req.NamespacedName, node); err != nil {
klog.Warningf("unable to fetch node %s: %w", node.Name, err)
klog.Warningf("unable to fetch node %s: %v", node.Name, err)
if apierrors.IsNotFound(err) {
// we'll ignore not-found errors, since they can't be fixed by an immediate
// requeue (we'll need to wait for a new notification), and we can get them

View File

@ -250,7 +250,7 @@ func (r *baseRequest) writeResponse(obj interface{}) error {
if _, err := r.w.Write(b); err != nil {
// Too late to send error response
klog.Warningf("error writing http response: %w", err)
klog.Warningf("error writing http response: %v", err)
return nil
}
return nil

View File

@ -182,7 +182,7 @@ func (c *VFSCAStore) ListKeysets() (map[string]*Keyset, error) {
name := tokens[0]
loadedKeyset, err := c.loadKeyset(ctx, baseDir.Join(name))
if err != nil {
klog.Warningf("ignoring keyset %q: %w", name, err)
klog.Warningf("ignoring keyset %q: %v", name, err)
continue
}