Skip to content

Fix NVDriver templating#413

Merged
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:fix_nvdriver_branch
Jul 17, 2025
Merged

Fix NVDriver templating#413
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:fix_nvdriver_branch

Conversation

@ArangoGutierrez
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the NVDriver template to propagate user-supplied Branch and Version settings and refines the default branch logic.

  • Propagate Branch and Version fields from env.Spec.NVIDIADriver
  • Apply default branch only when both Branch and Version are unset
Comments suppressed due to low confidence (1)

pkg/provisioner/templates/nv-driver.go:70

  • [nitpick] Consider adding a unit test for this condition to verify that NewNvDriver correctly applies the default branch when both Version and Branch are empty.
	if nvDriver.Version == "" && nvDriver.Branch == "" {

@coveralls
Copy link

coveralls commented Jul 17, 2025

Pull Request Test Coverage Report for Build 16345296187

Details

  • 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 14.937%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/provisioner/templates/nv-driver.go 0 6 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/provisioner/templates/nv-driver.go 1 25.0%
Totals Coverage Status
Change from base Build 16345256352: -0.03%
Covered Lines: 262
Relevant Lines: 1754

💛 - Coveralls

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
@ArangoGutierrez ArangoGutierrez merged commit 6472b62 into NVIDIA:main Jul 17, 2025
19 checks passed
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.

3 participants