mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #80033 from qingsenLi/k8s-190711
use klog.Error instead of klog.Errorf when had no format
This commit is contained in:
commit
eb4ff661a1
@ -297,13 +297,13 @@ func setConfigFromSecret(cfg *Config) error {
|
||||
if content, ok := secret.Data["clouds.conf"]; ok {
|
||||
err = gcfg.ReadStringInto(cfg, string(content))
|
||||
if err != nil {
|
||||
klog.Errorf("Cannot parse data from the secret.")
|
||||
klog.Error("Cannot parse data from the secret.")
|
||||
return fmt.Errorf("cannot parse data from the secret")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
klog.Errorf("Cannot find \"clouds.conf\" key in the secret.")
|
||||
klog.Error("Cannot find \"clouds.conf\" key in the secret.")
|
||||
return fmt.Errorf("cannot find \"clouds.conf\" key in the secret")
|
||||
}
|
||||
|
||||
|
@ -698,7 +698,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(ctx context.Context, clusterName string
|
||||
internal := getStringFromServiceAnnotation(apiService, ServiceAnnotationLoadBalancerInternal, "false")
|
||||
switch internal {
|
||||
case "true":
|
||||
klog.V(4).Infof("Ensure an internal loadbalancer service.")
|
||||
klog.V(4).Info("Ensure an internal loadbalancer service.")
|
||||
internalAnnotation = true
|
||||
case "false":
|
||||
if len(floatingPool) != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user