Skip to content

Commit

Permalink
Merge pull request #15926 from justinsb/fix_a_few_log_with_percent_w
Browse files Browse the repository at this point in the history
fix a few log with percent w
  • Loading branch information
k8s-ci-robot authored Sep 18, 2023
2 parents 9816fd9 + 0096451 commit 86d90f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/kops-controller/controllers/gceipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/applylib/mocks/mockkubeapiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions upup/pkg/fi/cloudup/template_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@ func (tf *TemplateFunctions) DNSControllerArgv() ([]string, error) {

if cluster.Spec.IsIPv6Only() {
argv = append(argv, "--internal-ipv6")
// We need IPv4 on GCE, because we aren't publishing IPv6 Node IPs on GCE yet
if cluster.Spec.GetCloudProvider() == kops.CloudProviderGCE {
argv = append(argv, "--internal-ipv4")
}
} else {
argv = append(argv, "--internal-ipv4")
}
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/vfs_castore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 86d90f1

Please sign in to comment.