Skip to content

Commit 4e3b46a

Browse files
authored
feat(containers): add cpu limit to update/create container request messages (#1650)
1 parent 260c9a6 commit 4e3b46a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ type Container struct {
583583
MaxScale uint32 `json:"max_scale"`
584584
// MemoryLimit: memory limit of the container in MB.
585585
MemoryLimit uint32 `json:"memory_limit"`
586-
// CPULimit: CPU limit of the container.
586+
// CPULimit: CPU limit of the container in mvCPU.
587587
CPULimit uint32 `json:"cpu_limit"`
588588
// Timeout: processing time limit for the container.
589589
Timeout *scw.Duration `json:"timeout"`
@@ -1152,6 +1152,8 @@ type CreateContainerRequest struct {
11521152
MaxScale *uint32 `json:"max_scale"`
11531153
// MemoryLimit: memory limit of the container in MB.
11541154
MemoryLimit *uint32 `json:"memory_limit"`
1155+
// CPULimit: CPU limit of the container in mvCPU.
1156+
CPULimit *uint32 `json:"cpu_limit"`
11551157
// Timeout: processing time limit for the container.
11561158
Timeout *scw.Duration `json:"timeout"`
11571159
// Privacy: privacy setting of the container.
@@ -1225,6 +1227,8 @@ type UpdateContainerRequest struct {
12251227
MaxScale *uint32 `json:"max_scale"`
12261228
// MemoryLimit: memory limit of the container in MB.
12271229
MemoryLimit *uint32 `json:"memory_limit"`
1230+
// CPULimit: CPU limit of the container in mvCPU.
1231+
CPULimit *uint32 `json:"cpu_limit"`
12281232
// Timeout: processing time limit for the container.
12291233
Timeout *scw.Duration `json:"timeout"`
12301234
// Redeploy: defines whether to redeploy failed containers.

0 commit comments

Comments
 (0)