mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
By using k8s.io/system-validators v1.12.1 a KubeletVersion can be passed to the CgroupsValidator. The library can then decide if to throw an error or a warning. An error is thrown if the version is >= 1.35. During upgrade pass a KubeletVersion that is with MINOR+1 to account for the target upgrade version. That is just an assumption that the user will upgrade the kubelet too, but it is better to throw an error for this common use case instead of just a warning that is seen after the upgrade command has finished.