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
f73c6844
Commit
f73c6844
authored
Aug 26, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Aug 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #31383 from janetkuo/run-attach-err
Automatic merge from submit-queue Print to stderr when attach failed @kubernetes/kubectl
parents
d5033c27
1d620b54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
run.go
pkg/kubectl/cmd/run.go
+1
-1
No files found.
pkg/kubectl/cmd/run.go
View file @
f73c6844
...
@@ -479,7 +479,7 @@ func handleAttachPod(f *cmdutil.Factory, c *client.Client, ns, name string, opts
...
@@ -479,7 +479,7 @@ func handleAttachPod(f *cmdutil.Factory, c *client.Client, ns, name string, opts
opts
.
PodName
=
name
opts
.
PodName
=
name
opts
.
Namespace
=
ns
opts
.
Namespace
=
ns
if
err
:=
opts
.
Run
();
err
!=
nil
{
if
err
:=
opts
.
Run
();
err
!=
nil
{
fmt
.
Fprintf
(
opts
.
Out
,
"Error attaching, falling back to logs: %v
\n
"
,
err
)
fmt
.
Fprintf
(
opts
.
Err
,
"Error attaching, falling back to logs: %v
\n
"
,
err
)
req
,
err
:=
f
.
LogsForObject
(
pod
,
&
api
.
PodLogOptions
{
Container
:
ctrName
})
req
,
err
:=
f
.
LogsForObject
(
pod
,
&
api
.
PodLogOptions
{
Container
:
ctrName
})
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
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