Merge pull request #96552 from pandaamanda/klog_fmt

use klog.Info and klog.Warning when had no format
This commit is contained in:
Kubernetes Prow Robot
2021-01-15 17:57:43 -08:00
committed by GitHub
21 changed files with 32 additions and 32 deletions

View File

@@ -335,7 +335,7 @@ func makeLeaderElectionConfig(config componentbaseconfig.LeaderElectionConfigura
// TODO remove masterOverride when CLI flags are removed.
func createKubeConfig(config componentbaseconfig.ClientConnectionConfiguration, masterOverride string) (*restclient.Config, error) {
if len(config.Kubeconfig) == 0 && len(masterOverride) == 0 {
klog.Warningf("Neither --kubeconfig nor --master was specified. Using default API client. This might not work.")
klog.Warning("Neither --kubeconfig nor --master was specified. Using default API client. This might not work.")
}
// This creates a client, first loading any specified kubeconfig