Skip to content

add warning about empty cgroup_parent field in pod config#1872

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
akhilerm:update-cgroup-driver-flag
Jul 23, 2025
Merged

add warning about empty cgroup_parent field in pod config#1872
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
akhilerm:update-cgroup-driver-flag

Conversation

@akhilerm

Copy link
Copy Markdown
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adds a warning message when cgroup_parent field is empty in the pod config.json. This will ensure that users does not assume that the correct cgroup driver is used always.

akhil@akhil-ThinkPad-L14:~/W/d/containerd $ sudo crictl runp pod.json
WARN[0000] cgroup_parent is not set. Use `runtime-config` to get the runtime cgroup driver

Which issue(s) this PR fixes:

Change as mentioned in #1867 (comment)

Special notes for your reviewer:

Does this PR introduce a user-facing change?

A warning message when the cgroup_parent field is left empty in the pod config.json.

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 22, 2025
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 22, 2025
@akhilerm
akhilerm force-pushed the update-cgroup-driver-flag branch from 7ab2e90 to 532ecbc Compare July 22, 2025 02:14
@akhilerm

Copy link
Copy Markdown
Member Author

/cc @saschagrunert @SergeyKanzhelev

@SergeyKanzhelev SergeyKanzhelev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 22, 2025
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akhilerm, saschagrunert, SergeyKanzhelev

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

The pull request process is described here

Details 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 Jul 23, 2025
@k8s-ci-robot
k8s-ci-robot merged commit 790b60a into kubernetes-sigs:master Jul 23, 2025
36 checks passed
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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants