mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 23:19:26 +00:00
Merge pull request #96552 from pandaamanda/klog_fmt
use klog.Info and klog.Warning when had no format
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user