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
af6bf1e4
Unverified
Commit
af6bf1e4
authored
Nov 29, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70645 from changyaowei/node_ephemeral-storage
Fix bug: when kubelet restart, the ephemeral-storage in node status upgrade to 0
parents
15556551
3f422d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
setters.go
pkg/kubelet/nodestatus/setters.go
+3
-1
No files found.
pkg/kubelet/nodestatus/setters.go
View file @
af6bf1e4
...
...
@@ -270,7 +270,9 @@ func MachineInfo(nodeName string,
// capacity for every node status request
initialCapacity
:=
capacityFunc
()
if
initialCapacity
!=
nil
{
node
.
Status
.
Capacity
[
v1
.
ResourceEphemeralStorage
]
=
initialCapacity
[
v1
.
ResourceEphemeralStorage
]
if
v
,
exists
:=
initialCapacity
[
v1
.
ResourceEphemeralStorage
];
exists
{
node
.
Status
.
Capacity
[
v1
.
ResourceEphemeralStorage
]
=
v
}
}
}
...
...
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