mirror of https://github.com/k3s-io/k3s
commit
2ec49efd54
|
@ -84,7 +84,7 @@ func main() {
|
|||
util.InitFlags()
|
||||
|
||||
if !knownMorphs.Has(config.Morph) {
|
||||
glog.Fatal("Unknown morph: %v. Allowed values: %v", config.Morph, knownMorphs.List())
|
||||
glog.Fatalf("Unknown morph: %v. Allowed values: %v", config.Morph, knownMorphs.List())
|
||||
}
|
||||
|
||||
// create a client to communicate with API server.
|
||||
|
|
|
@ -98,7 +98,7 @@ func main() {
|
|||
if err != nil {
|
||||
glog.Fatalf("Error: %v", err)
|
||||
}
|
||||
glog.Info("going to generate clientset from these input paths: %v", inputPath)
|
||||
glog.Infof("going to generate clientset from these input paths: %v", inputPath)
|
||||
arguments.InputDirs = append(inputPath, dependencies...)
|
||||
// TODO: we need to make OutPackagePath a map[string]string. For example,
|
||||
// we need clientset and the individual typed clients be output to different
|
||||
|
|
|
@ -1234,7 +1234,7 @@ func (c *AWSCloud) AttachDisk(diskName string, instanceName string, readOnly boo
|
|||
return "", fmt.Errorf("Error attaching EBS volume: %v", err)
|
||||
}
|
||||
|
||||
glog.V(2).Info("AttachVolume request returned %v", attachResponse)
|
||||
glog.V(2).Infof("AttachVolume request returned %v", attachResponse)
|
||||
}
|
||||
|
||||
err = disk.waitForAttachmentStatus("attached")
|
||||
|
@ -1890,7 +1890,7 @@ func (s *AWSCloud) EnsureLoadBalancer(name, region string, publicIP net.IP, port
|
|||
|
||||
err = s.ensureLoadBalancerInstances(orEmpty(loadBalancer.LoadBalancerName), loadBalancer.Instances, instances)
|
||||
if err != nil {
|
||||
glog.Warning("Error registering instances with the load balancer: %v", err)
|
||||
glog.Warningf("Error registering instances with the load balancer: %v", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
@ -679,7 +679,7 @@ func (lb *LoadBalancer) EnsureLoadBalancer(name, region string, loadBalancerIP n
|
|||
return nil, fmt.Errorf("unsupported load balancer affinity: %v", affinity)
|
||||
}
|
||||
|
||||
glog.V(2).Info("Checking if openstack load balancer already exists: %s", name)
|
||||
glog.V(2).Infof("Checking if openstack load balancer already exists: %s", name)
|
||||
_, exists, err := lb.GetLoadBalancer(name, region)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error checking if openstack load balancer already exists: %v", err)
|
||||
|
|
|
@ -202,7 +202,7 @@ func (controller *PersistentVolumeProvisionerController) reconcileClaim(claim *a
|
|||
claim.Annotations[pvProvisioningRequiredAnnotationKey] = pvProvisioningCompletedAnnotationValue
|
||||
_, err = controller.client.UpdatePersistentVolumeClaim(claim)
|
||||
if err != nil {
|
||||
glog.Error("error updating persistent volume claim: %v", err)
|
||||
glog.Errorf("error updating persistent volume claim: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
@ -1449,7 +1449,7 @@ func (r *Runtime) GetPodStatus(uid types.UID, name, namespace string) (*kubecont
|
|||
for _, pod := range listResp.Pods {
|
||||
manifest, creationTime, restartCount, err := getPodInfo(pod)
|
||||
if err != nil {
|
||||
glog.Warning("rkt: Couldn't get necessary info from the rkt pod, (uuid %q): %v", pod.Id, err)
|
||||
glog.Warningf("rkt: Couldn't get necessary info from the rkt pod, (uuid %q): %v", pod.Id, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ func parseMetrics(data string, knownMetrics map[string][]string, output *Metrics
|
|||
if isKnownMetric || isCommonMetric {
|
||||
(*output)[name] = append((*output)[name], metric)
|
||||
} else {
|
||||
glog.Warning("Unknown metric %v", metric)
|
||||
glog.Warningf("Unknown metric %v", metric)
|
||||
if unknownMetrics != nil {
|
||||
unknownMetrics.Insert(name)
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ func (m *realMountDetector) GetMountMedium(path string) (storageMedium, bool, er
|
|||
return 0, false, fmt.Errorf("statfs(%q): %v", path, err)
|
||||
}
|
||||
|
||||
glog.V(5).Info("Statfs_t of %v: %+v", path, buf)
|
||||
glog.V(5).Infof("Statfs_t of %v: %+v", path, buf)
|
||||
if buf.Type == linuxTmpfsMagic {
|
||||
return mediumMemory, !notMnt, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue