Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Bk Bcs
Commits
0ae48a21
Unverified
Commit
0ae48a21
authored
4 years ago
by
Jim
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #520 from zmberg/1.17.x
fix: mesos 1.17.x版本resources.limit不生效 #519
parents
9c11bb10
4f12e5e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bcs-mesos/bcs-mesos-driver/mesosdriver/backend/v4http/create.go
+5
-0
...sos/bcs-mesos-driver/mesosdriver/backend/v4http/create.go
with
5 additions
and
0 deletions
+5
-0
bcs-mesos/bcs-mesos-driver/mesosdriver/backend/v4http/create.go
+
5
-
0
View file @
0ae48a21
...
...
@@ -216,6 +216,11 @@ func (s *Scheduler) setVersionWithPodSpec(version *types.Version, spec *bcstype.
container
.
Resources
.
Cpus
,
_
=
strconv
.
ParseFloat
(
c
.
Resources
.
Requests
.
Cpu
,
64
)
container
.
Resources
.
Mem
,
_
=
strconv
.
ParseFloat
(
c
.
Resources
.
Requests
.
Mem
,
64
)
container
.
Resources
.
Disk
,
_
=
strconv
.
ParseFloat
(
c
.
Resources
.
Requests
.
Storage
,
64
)
//limit
container
.
LimitResoures
=
new
(
types
.
Resource
)
container
.
LimitResoures
.
Cpus
,
_
=
strconv
.
ParseFloat
(
c
.
Resources
.
Limits
.
Cpu
,
64
)
container
.
LimitResoures
.
Mem
,
_
=
strconv
.
ParseFloat
(
c
.
Resources
.
Limits
.
Mem
,
64
)
container
.
LimitResoures
.
Disk
,
_
=
strconv
.
ParseFloat
(
c
.
Resources
.
Limits
.
Storage
,
64
)
container
.
DataClass
=
&
types
.
DataClass
{
Resources
:
new
(
types
.
Resource
),
Msgs
:
[]
*
types
.
BcsMessage
{},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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