Skip to content

Commit

Permalink
feat: add support for CPUCFSQuota (#187)
Browse files Browse the repository at this point in the history
* feat: add support for CPUCFSQuota

* feat: add support for CPUCFSQuota

* feat: add support for CPUCFSQuota

* feat: add support for CPUCFSQuota

---------

Co-authored-by: Jonathan Innis <jonathan.innis.ji@gmail.com>
  • Loading branch information
lucass4 and jonathan-innis committed Jan 31, 2023
1 parent 9cffa7e commit 033f916
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/crds/karpenter.sh_machines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ spec:
description: ContainerRuntime is the container runtime to be used
with your worker nodes.
type: string
cpuCFSQuota:
description: CPUCFSQuota enables CPU CFS quota enforcement for
containers that specify CPU limits.
type: boolean
evictionHard:
additionalProperties:
type: string
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/crds/karpenter.sh_provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
description: ContainerRuntime is the container runtime to be used
with your worker nodes.
type: string
cpuCFSQuota:
description: CPUCFSQuota enables CPU CFS quota enforcement for
containers that specify CPU limits.
type: boolean
evictionHard:
additionalProperties:
type: string
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/v1alpha5/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ type KubeletConfiguration struct {
// +kubebuilder:validation:Maximum:=100
// +optional
ImageGCLowThresholdPercent *int32 `json:"imageGCLowThresholdPercent,omitempty"`
// CPUCFSQuota enables CPU CFS quota enforcement for containers that specify CPU limits.
// +optional
CPUCFSQuota bool `json:"cpuCFSQuota,omitempty"`
}

type ProviderRef struct {
Expand Down

0 comments on commit 033f916

Please sign in to comment.