[Feature Request] Option to skip specific validators
Background:
We are using gpu-operator on GKE (COS) that already comes with toolkit and device plugin installed. I have gone through this page: https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/google-gke.html
When we let the gpu operator install and manage the toolkit we are facing instability issues in containerd (frequent restarts) and image pull errors - This is a separate issue of its own - Maybe this is due to COS being restrictive and it does not like configurations being changed.
Hence we are setting toolkit.enabled and devicePlugin.enabled as false to use whatever GKE already provides us.
The only problem is toolkit-validation in operator-validator errors out.
Root cause:
toolkit-validation runs with securityContext: privileged and asks for gpus using NVIDIA_VISIBLE_DEVICES: all.
Normally toolkit + device plugin honor this and inject nvidia-smi and the gpus.
But GKE's toolkit does not inject nvidia-smi until the container explicitly requests nvidia.com/gpu > 0
We would like the option to skip toolkit validation or any validation component
Full set of values here: https://github.com/truefoundry/infra-charts/blob/2c3b765c57acb36fd6cf0a4b7c4f8da47d0ed15b/charts/tfy-gpu-operator/values.yaml#L516-L888
This issue is stale because it has been open 90 days with no activity. This issue will be closed in 30 days unless new comments are made or the stale label is removed. To skip these checks, apply the "lifecycle/frozen" label.
Hi @rahulait, I'd like to work on this.
I traced how the validator is built and want to confirm the intended scope before opening a PR.
Root cause matches the report: in TransformValidatorComponent (controllers/object_controls.go), the plugin and cc-manager cases already drop their *-validation init-container when the underlying component is disabled, but the toolkit case only sets env vars. So with toolkit.enabled=false, toolkit-validation still runs and fails on setups like GKE/COS where the toolkit isn't operator-managed.
Two ways to fix it, and I'd like your call on which you prefer:
-
Minimal: mirror the existing
plugin/cc-managerpattern and removetoolkit-validationwhen!config.Toolkit.IsEnabled(). Smallest change, consistent with current behavior, resolves this report directly. -
General: add an explicit
enabledflag to each*ValidatorSpecso any single validator can be turned off independently of its component.
/assign
@chiragjn can you clarify a bit more on what the instability was and if you were able to verify if those were indeed related to what the operator was doing ? The feature request seems to be trying to circumvent the recommended way to deploy on GKE COS, I would like to understand if possible the reason for the instability and try to address that before we try to work around it. Are there any logs that you are able to share with us ?
Hi, this is a feature we could also benefit from, we run Flatcar Linux and we install drivers and container toolkit as pre built overlays - reference documentation
In this case for example we have no use for the validation for drivers and toolkit - they would either succeed or fail before the operator is even run and we could save some seconds and money by skipping it in a highly dynamic auto scaling environment.
Would you be open to reconsider the proposed change to enable this option? Or suggest how we could contribute a change that would be acceptable?
Thanks
We’re closing this RFE for now, as it is not currently on our priority roadmap.
An internal technical analysis determined that disabling toolkit-validation would significantly affect the current internal state machine. The device-plugin, DCGM, and DCGM Exporter pods will not start unless the toolkit-ready file is created by the toolkit-validation container.
If this capability is critical to your environment, please feel free to reopen the issue and include the relevant use case and business justification so we can reassess its priority. Thanks.