Skip to content

Commit

Permalink
Enable cpu specification in jobConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
shunki-fujita committed Oct 18, 2023
1 parent 8b8123d commit 49a2d8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/v1beta2/job_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ type JobConfig struct {
// +optional
Threads int `json:"threads,omitempty"`

// CPU is the amount of CPU requested for the Pod.
// +kubebuilder:default="4"
// +optional
CPU *resource.Quantity `json:"cpu,omitempty"`

// MaxCPU is the amount of maximum CPU for the Pod.
// +nullable
// +optional
MaxCPU *resource.Quantity `json:"maxCpu,omitempty"`

// Memory is the amount of memory requested for the Pod.
// +kubebuilder:default="4Gi"
// +nullable
Expand Down

0 comments on commit 49a2d8e

Please sign in to comment.