I have a case that is hitting this bug as well. OCP 4.8.21 ~~~ - lastTransitionTime: "2022-02-23T19:37:42Z" message: 'Error: invalid PidsLimit -1' status: "False" type: Failure ~~~
The PidsLimit in ContainerRuntimeConfig have undergone some changes since 4.8. As a contrary, the value of PidsLimit must be a number greater than 20 [1] for it to be valid. So, using "pidsLimit: -1" is not actually allowed. However, it also does seem like there is no upper bound on this limit and setting a very high value should suffice the actual use cases in concern. [1] https://github.com/openshift/machine-config-operator/blob/release-4.7/pkg/controller/container-runtime-config/helpers.go#L437-L439