Skip to content

Apply validator resources to init containers#2557

Open
Shivkumar13 wants to merge 1 commit into
NVIDIA:mainfrom
Shivkumar13:gh-702-init-container-resources
Open

Apply validator resources to init containers#2557
Shivkumar13 wants to merge 1 commit into
NVIDIA:mainfrom
Shivkumar13:gh-702-init-container-resources

Conversation

@Shivkumar13

Copy link
Copy Markdown
Collaborator

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=1
  • go test ./controllers -run TestTransformValidator -count=1
  • go test ./controllers -run TestTransformSandboxValidator -count=1

Signed-off-by: Shivkumar Ople <sople@nvidia.com>
@Shivkumar13
Shivkumar13 force-pushed the gh-702-init-container-resources branch from 73f0040 to 98cfccd Compare June 17, 2026 18:01
@rahulait

rahulait commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Thanks @Shivkumar13 , the changes look fine to me. We should be doing this for all driver daemonsets managed by gpu-operator. For example, we are still missing requests/limits for k8s-driver-manager init container in driver daemonset. There are few other init containers as well which are also missing requests/limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InitContainers have non configurable and explicitely empty resrources

2 participants