gpu-operator
gpu-operator copied to clipboard
Apply validator resources to init containers
Fixes #702.
This change applies the existing spec.validator.resources settings to validator init containers as well as the main validator container. The affected init containers run the validator image for driver, toolkit, CUDA, and plugin checks, so using the existing validator resource field keeps the API surface unchanged while making those init containers configurable.
Validation:
go test ./controllers -run TestTransformValidatorComponentWithResources -count=1go test ./controllers -run TestTransformValidator -count=1go test ./controllers -run TestTransformSandboxValidator -count=1