Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crictl: Adds support for updating resource limits for Windows Containers #799

Conversation

claudiubelu
Copy link
Contributor

What type of PR is this?

/kind feature
/sig windows

What this PR does / why we need it:

The fields supported in the WindowsContainerResources are:

  • CpuCount: Number of CPUs available to the container. Default: 0 (not specified).
  • CpuMaximum: Specifies the portion of processor cycles that this container can use as a percentage times 100.
  • CpuShares: CPU shares (relative weight vs. other containers). Default: 0 (not specified).
  • MemoryLimitInBytes: Memory limit in bytes. Default: 0 (not specified).

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Added support to update the resource limits to Windows Containers in crictl.

The fields supported in the WindowsContainerResources are:

- CpuCount: Number of CPUs available to the container. Default: 0 (not specified).
- CpuMaximum: Specifies the portion of processor cycles that this container can use as a percentage times 100.
- CpuShares: CPU shares (relative weight vs. other containers). Default: 0 (not specified).
- MemoryLimitInBytes: Memory limit in bytes. Default: 0 (not specified).
@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. sig/windows Categorizes an issue or PR as relevant to SIG Windows. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 21, 2021
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 21, 2021
@feiskyer
Copy link
Member

this looks good, but have you validated whether any runtimes (e.g. containerd) support this behavior?

@claudiubelu
Copy link
Contributor Author

Support is being added here: containerd/containerd#5778

@feiskyer
Copy link
Member

feiskyer commented Aug 4, 2021

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 4, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: claudiubelu, feiskyer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2021
@k8s-ci-robot k8s-ci-robot merged commit 779aa4c into kubernetes-sigs:master Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/windows Categorizes an issue or PR as relevant to SIG Windows. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants