Skip to content

store os release name and use it than recalculating from tag which is errorprone#2244

Open
rahulait wants to merge 1 commit intoNVIDIA:mainfrom
rahulait:fix-issue-2239
Open

store os release name and use it than recalculating from tag which is errorprone#2244
rahulait wants to merge 1 commit intoNVIDIA:mainfrom
rahulait:fix-issue-2239

Conversation

@rahulait
Copy link
Copy Markdown
Contributor

@rahulait rahulait commented Mar 24, 2026

Description

Fixes #2239

Instead of re-calculating os release from the tag (which is errorprone as there can be different combinations and all might not be covered by code), store the os-release when its fetched from node label and then re-use it where required.

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

@rahulait rahulait changed the title store os release name and use it than recalculating from tag which is… store os release name and use it than recalculating from tag which is errorprone Mar 24, 2026
@rahulait rahulait added this to the v26.3.1 milestone Mar 25, 2026
@rahulait rahulait self-assigned this Mar 31, 2026
… errorprone

Signed-off-by: Rahul Sharma <rahulsharm@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Apr 3, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@rahulait
Copy link
Copy Markdown
Contributor Author

rahulait commented Apr 3, 2026

/ok to test 092582b

return fmt.Errorf("no gpu nodes in mock cluster")
}
gpuNodeOSTag, err := clusterPolicyController.getGPUNodeOSTag()
gpuNodeOSRelease, gpuNodeOSTag, err := clusterPolicyController.getGPUNodeOSInfo()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rahulait Can we not throw an error here if the gpuNodeOSRelease and gpuNodeOSTag is empty? This code path is only executed after gpu nodes are detected. This would eliminate some redundant code

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.

[Bug]: Latest relese does not work on Talos Linux because of incorrect version parsing

2 participants