Skip to content

Commit

Permalink
fix(koordlet): fix be container memory request (#129)
Browse files Browse the repository at this point in the history
Signed-off-by: shinytang6 <1074461480@qq.com>
  • Loading branch information
shinytang6 authored May 9, 2022
1 parent 54d52c7 commit 6200cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func GetContainerBEMilliCPULimit(c *corev1.Container) int64 {
}

func GetContainerBEMemoryByteRequest(c *corev1.Container) int64 {
if memLimit, ok := c.Resources.Limits[extension.BatchMemory]; ok {
if memLimit, ok := c.Resources.Requests[extension.BatchMemory]; ok {
return memLimit.Value()
}
return -1
Expand Down

0 comments on commit 6200cdc

Please sign in to comment.