Skip to content

Commit

Permalink
Fix CPU FS quota and its defaulting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Apr 5, 2023
1 parent 87ee33a commit ee5bc82
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/apis/crds/karpenter.sh_machines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spec:
with your worker nodes.
type: string
cpuCFSQuota:
default: true
description: CPUCFSQuota enables CPU CFS quota enforcement for
containers that specify CPU limits.
type: boolean
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/crds/karpenter.sh_provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spec:
with your worker nodes.
type: string
cpuCFSQuota:
default: true
description: CPUCFSQuota enables CPU CFS quota enforcement for
containers that specify CPU limits.
type: boolean
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/v1alpha5/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ type KubeletConfiguration struct {
// +optional
ImageGCLowThresholdPercent *int32 `json:"imageGCLowThresholdPercent,omitempty"`
// CPUCFSQuota enables CPU CFS quota enforcement for containers that specify CPU limits.
// +kubebuilder:default=true
// +optional
CPUCFSQuota bool `json:"cpuCFSQuota,omitempty"`
CPUCFSQuota *bool `json:"cpuCFSQuota,omitempty"`
}

type MachineTemplateRef struct {
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/v1alpha5/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee5bc82

Please sign in to comment.