mirror of https://github.com/kubernetes/kops.git
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:
parent
f80a66903b
commit
0096451a83
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue