clientcmd: remove needless format specifier in a log

Current BuildConfigFromFlags() seems to print a log like below when
config path isn't specified:
```
W0120 15:30:06.196820   13323 client_config.go:359] error creating
inClusterConfig, falling back to default config: %vunable to load
in-cluster configuration, KUBERNETES_SERVICE_HOST and
KUBERNETES_SERVICE_PORT must be defined
```

This commit removes the needless "%v"
This commit is contained in:
Hitoshi Mitake 2016-01-20 15:32:09 +09:00
parent d351a0f626
commit a33f459c39

View File

@ -356,7 +356,7 @@ func BuildConfigFromFlags(masterUrl, kubeconfigPath string) (*client.Config, err
if err == nil {
return kubeconfig, nil
}
glog.Warning("error creating inClusterConfig, falling back to default config: %v", err)
glog.Warning("error creating inClusterConfig, falling back to default config: ", err)
}
return NewNonInteractiveDeferredLoadingClientConfig(