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
a9c95052
Commit
a9c95052
authored
May 11, 2015
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use VirtualSize of the docker image as the image size
parent
3599d81e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
convert.go
pkg/kubelet/dockertools/convert.go
+1
-1
convert_test.go
pkg/kubelet/dockertools/convert_test.go
+3
-3
kubelet.go
pkg/kubelet/kubelet.go
+1
-1
No files found.
pkg/kubelet/dockertools/convert.go
View file @
a9c95052
...
...
@@ -55,6 +55,6 @@ func toRuntimeImage(image *docker.APIImages) (*kubecontainer.Image, error) {
return
&
kubecontainer
.
Image
{
ID
:
image
.
ID
,
Tags
:
image
.
RepoTags
,
Size
:
image
.
Size
,
Size
:
image
.
Virtual
Size
,
},
nil
}
pkg/kubelet/dockertools/convert_test.go
View file @
a9c95052
...
...
@@ -51,9 +51,9 @@ func TestToRuntimeContainer(t *testing.T) {
func
TestToRuntimeImage
(
t
*
testing
.
T
)
{
original
:=
&
docker
.
APIImages
{
ID
:
"aeeea"
,
RepoTags
:
[]
string
{
"abc"
,
"def"
},
Size
:
1234
,
ID
:
"aeeea"
,
RepoTags
:
[]
string
{
"abc"
,
"def"
},
VirtualSize
:
1234
,
}
expected
:=
&
kubecontainer
.
Image
{
ID
:
"aeeea"
,
...
...
pkg/kubelet/kubelet.go
View file @
a9c95052
...
...
@@ -1173,7 +1173,7 @@ func (kl *Kubelet) SyncPods(allPods []*api.Pod, podSyncTypes map[types.UID]metri
}
// Note that we just killed the unwanted pods. This may not have reflected
// in the cache. We need to bypass the cach to get the latest set of
// in the cache. We need to bypass the cach
e
to get the latest set of
// running pods to clean up the volumes.
// TODO: Evaluate the performance impact of bypassing the runtime cache.
runningPods
,
err
=
kl
.
containerRuntime
.
GetPods
(
false
)
...
...
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