Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0da17683
Commit
0da17683
authored
Jun 19, 2015
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log a message when we fall back to service account
parent
29ffee51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
merged_client_builder.go
pkg/client/clientcmd/merged_client_builder.go
+3
-0
No files found.
pkg/client/clientcmd/merged_client_builder.go
View file @
0da17683
...
...
@@ -20,6 +20,8 @@ import (
"io"
"reflect"
"github.com/golang/glog"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
clientcmdapi
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api"
)
...
...
@@ -84,6 +86,7 @@ func (config DeferredLoadingClientConfig) ClientConfig() (*client.Config, error)
icc
:=
inClusterClientConfig
{}
defaultConfig
,
err
:=
DefaultClientConfig
.
ClientConfig
()
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
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment