Commit 0da17683 authored by Mike Danese's avatar Mike Danese

log a message when we fall back to service account

parent 29ffee51
...@@ -20,6 +20,8 @@ import ( ...@@ -20,6 +20,8 @@ import (
"io" "io"
"reflect" "reflect"
"github.com/golang/glog"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client" "github.com/GoogleCloudPlatform/kubernetes/pkg/client"
clientcmdapi "github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api" clientcmdapi "github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api"
) )
...@@ -84,6 +86,7 @@ func (config DeferredLoadingClientConfig) ClientConfig() (*client.Config, error) ...@@ -84,6 +86,7 @@ func (config DeferredLoadingClientConfig) ClientConfig() (*client.Config, error)
icc := inClusterClientConfig{} icc := inClusterClientConfig{}
defaultConfig, err := DefaultClientConfig.ClientConfig() defaultConfig, err := DefaultClientConfig.ClientConfig()
if icc.Possible() && err == nil && reflect.DeepEqual(mergedConfig, defaultConfig) { if icc.Possible() && err == nil && reflect.DeepEqual(mergedConfig, defaultConfig) {
glog.V(2).Info("no kubeconfig could be created, falling back to service account.")
return icc.ClientConfig() return icc.ClientConfig()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment