Skip to content

Commit

Permalink
feat(containers): add cpu limit to update/create container request me…
Browse files Browse the repository at this point in the history
…ssages (#1650)
  • Loading branch information
scaleway-bot authored Apr 18, 2023
1 parent 260c9a6 commit 4e3b46a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/container/v1beta1/container_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ type Container struct {
MaxScale uint32 `json:"max_scale"`
// MemoryLimit: memory limit of the container in MB.
MemoryLimit uint32 `json:"memory_limit"`
// CPULimit: CPU limit of the container.
// CPULimit: CPU limit of the container in mvCPU.
CPULimit uint32 `json:"cpu_limit"`
// Timeout: processing time limit for the container.
Timeout *scw.Duration `json:"timeout"`
Expand Down Expand Up @@ -1152,6 +1152,8 @@ type CreateContainerRequest struct {
MaxScale *uint32 `json:"max_scale"`
// MemoryLimit: memory limit of the container in MB.
MemoryLimit *uint32 `json:"memory_limit"`
// CPULimit: CPU limit of the container in mvCPU.
CPULimit *uint32 `json:"cpu_limit"`
// Timeout: processing time limit for the container.
Timeout *scw.Duration `json:"timeout"`
// Privacy: privacy setting of the container.
Expand Down Expand Up @@ -1225,6 +1227,8 @@ type UpdateContainerRequest struct {
MaxScale *uint32 `json:"max_scale"`
// MemoryLimit: memory limit of the container in MB.
MemoryLimit *uint32 `json:"memory_limit"`
// CPULimit: CPU limit of the container in mvCPU.
CPULimit *uint32 `json:"cpu_limit"`
// Timeout: processing time limit for the container.
Timeout *scw.Duration `json:"timeout"`
// Redeploy: defines whether to redeploy failed containers.
Expand Down

0 comments on commit 4e3b46a

Please sign in to comment.