Skip to content

Fix gpuop-cfg panic when validating a ClusterPolicy with no GDS configuration - #2792

Merged
kvalliyurnatt merged 3 commits into
NVIDIA:mainfrom
kvalliyurnatt:fix_gpudirect_panic
Aug 26, 2026
Merged

Fix gpuop-cfg panic when validating a ClusterPolicy with no GDS configuration#2792
kvalliyurnatt merged 3 commits into
NVIDIA:mainfrom
kvalliyurnatt:fix_gpudirect_panic

Conversation

@kvalliyurnatt

@kvalliyurnatt kvalliyurnatt commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

Fix gpuop-cfg panic when validating a ClusterPolicy with no GDS configuration. Skip validation for an omitted GDS spec and make ImagePath return an error instead of dereferencing a typed-nil pointer.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Added unit tests also tested the CLI locally

Signed-off-by: Karthikeyan Valliyurnatt <kvalliyurnat@nvidia.com>
Signed-off-by: Karthikeyan Valliyurnatt <kvalliyurnat@nvidia.com>
Signed-off-by: Karthikeyan Valliyurnatt <kvalliyurnat@nvidia.com>
@rahulait

Copy link
Copy Markdown
Contributor

Lets squash commits into 1 before merging.

@kvalliyurnatt
kvalliyurnatt merged commit e466ce3 into NVIDIA:main Aug 26, 2026
21 checks passed
@kvalliyurnatt
kvalliyurnatt deleted the fix_gpudirect_panic branch August 26, 2026 16:05
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.

2 participants