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
798de294
Commit
798de294
authored
Jul 07, 2017
by
yiqinguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When faild create pod sandbox record event.
parent
6fbc554c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
event.go
pkg/kubelet/events/event.go
+1
-0
kuberuntime_manager.go
pkg/kubelet/kuberuntime/kuberuntime_manager.go
+5
-0
No files found.
pkg/kubelet/events/event.go
View file @
798de294
...
@@ -62,6 +62,7 @@ const (
...
@@ -62,6 +62,7 @@ const (
SuccessfulNodeAllocatableEnforcement
=
"NodeAllocatableEnforced"
SuccessfulNodeAllocatableEnforcement
=
"NodeAllocatableEnforced"
UnsupportedMountOption
=
"UnsupportedMountOption"
UnsupportedMountOption
=
"UnsupportedMountOption"
SandboxChanged
=
"SandboxChanged"
SandboxChanged
=
"SandboxChanged"
FailedCreatePodSandBox
=
"FailedCreatePodSandBox"
// Image manager event reason list
// Image manager event reason list
InvalidDiskCapacity
=
"InvalidDiskCapacity"
InvalidDiskCapacity
=
"InvalidDiskCapacity"
...
...
pkg/kubelet/kuberuntime/kuberuntime_manager.go
View file @
798de294
...
@@ -616,6 +616,11 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, _ v1.PodStatus, podStat
...
@@ -616,6 +616,11 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, _ v1.PodStatus, podStat
if
err
!=
nil
{
if
err
!=
nil
{
createSandboxResult
.
Fail
(
kubecontainer
.
ErrCreatePodSandbox
,
msg
)
createSandboxResult
.
Fail
(
kubecontainer
.
ErrCreatePodSandbox
,
msg
)
glog
.
Errorf
(
"createPodSandbox for pod %q failed: %v"
,
format
.
Pod
(
pod
),
err
)
glog
.
Errorf
(
"createPodSandbox for pod %q failed: %v"
,
format
.
Pod
(
pod
),
err
)
ref
,
err
:=
ref
.
GetReference
(
api
.
Scheme
,
pod
)
if
err
!=
nil
{
glog
.
Errorf
(
"Couldn't make a ref to pod %q: '%v'"
,
format
.
Pod
(
pod
),
err
)
}
m
.
recorder
.
Eventf
(
ref
,
v1
.
EventTypeWarning
,
events
.
FailedCreatePodSandBox
,
"Failed create pod sandbox."
)
return
return
}
}
glog
.
V
(
4
)
.
Infof
(
"Created PodSandbox %q for pod %q"
,
podSandboxID
,
format
.
Pod
(
pod
))
glog
.
V
(
4
)
.
Infof
(
"Created PodSandbox %q for pod %q"
,
podSandboxID
,
format
.
Pod
(
pod
))
...
...
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