mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
use klog.Error instead of klog.Errorf when had no format
This commit is contained in:
parent
529255865d
commit
ca53c3a7a6
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue