Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ijaz Ahmad
ksonnet
Commits
560a43bd
Unverified
Commit
560a43bd
authored
Apr 03, 2018
by
Bryan Liles
Committed by
GitHub
Apr 03, 2018
Browse files
Merge pull request #416 from bryanl/kubeconfig-notification
Print location of kubeconfig
parents
0583ed58
056c3259
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
client/client.go
client/client.go
+1
-1
No files found.
client/client.go
View file @
560a43bd
...
...
@@ -237,7 +237,7 @@ func (c *Config) ResolveContext(context string) (server, namespace string, err e
return
""
,
""
,
errors
.
Errorf
(
"context '%s' does not exist in the kubeconfig file"
,
context
)
}
log
.
Infof
(
"Using context
'%s'
from
the
kubeconfig file
specified at the environment variable $KUBECONFIG"
,
context
)
log
.
Infof
(
"Using context
%q
from kubeconfig file
%q"
,
context
,
ctx
.
LocationOfOrigin
)
cluster
,
exists
:=
rawConfig
.
Clusters
[
ctx
.
Cluster
]
if
!
exists
{
return
""
,
""
,
errors
.
Errorf
(
"No cluster with name '%s' exists"
,
ctx
.
Cluster
)
...
...
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