Skip to content

Conversation

@neolit123
Copy link
Member

@neolit123 neolit123 commented Oct 21, 2025

Add a KubeletVersion to the validator struct. This allows
to parse the version and make a decision to show a warning
or an error. Add a new function isCgroupsV1DisabledInKubelet
that does that and include unit tests for it.

fixes #58

once this merges we need to update kubeadm to pass set the new KubelerVersion field.

@neolit123 neolit123 requested review from kannon92 and pacoxu October 21, 2025 18:15
@neolit123 neolit123 added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 21, 2025
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/node Categorizes an issue or PR as relevant to SIG Node. labels Oct 21, 2025
@k8s-ci-robot k8s-ci-robot requested a review from carlory October 21, 2025 18:15
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 21, 2025
@k8s-ci-robot k8s-ci-robot requested a review from SataQiu October 21, 2025 18:15
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 21, 2025
@neolit123 neolit123 force-pushed the 1.35-make-cgroup-validator-consider-kubelet-version branch from 35d9fab to f17cbb5 Compare October 21, 2025 18:16
@neolit123
Copy link
Member Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 21, 2025
@neolit123 neolit123 force-pushed the 1.35-make-cgroup-validator-consider-kubelet-version branch 2 times, most recently from 1597bf8 to 7343fc1 Compare October 21, 2025 22:02
@neolit123 neolit123 mentioned this pull request Oct 22, 2025
Copy link
Member

@SataQiu SataQiu left a comment

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 Oct 23, 2025
Add a KubeletVersion to the validator struct. This allows
to parse the version and make a decision to show a warning
or an error. Add a new function isCgroupsV1DisabledInKubelet
that does that and include unit tests for it.
@neolit123 neolit123 force-pushed the 1.35-make-cgroup-validator-consider-kubelet-version branch from 7343fc1 to 4a53f46 Compare October 23, 2025 13:06
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 23, 2025
@carlory
Copy link
Member

carlory commented Oct 23, 2025

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carlory, neolit123, SataQiu

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

@neolit123
Copy link
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 23, 2025
@k8s-ci-robot k8s-ci-robot merged commit 9040bc2 into kubernetes:main Oct 23, 2025
3 checks passed
k8s-ci-robot added a commit that referenced this pull request Oct 23, 2025
…-to-release-1.12

cherry-pick #60 and #61 to release-1.12
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/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/node Categorizes an issue or PR as relevant to SIG Node. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust Cgroup V1 Check

4 participants