-
Notifications
You must be signed in to change notification settings - Fork 99
Clean up resourceSlices during exit #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ArangoGutierrez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the Help @klueska
cmd/nvidia-dra-controller/main.go
Outdated
| defer func() { | ||
| cancel() | ||
| if err := imexManager.Stop(); err != nil { | ||
| klog.Errorf("error stopping IMEX manager: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| klog.Errorf("error stopping IMEX manager: %v", err) | |
| klog.Errorf("Error stopping IMEX manager: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I forgot linters don't like capitalized error messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted this change, to comply with the linter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WONT-DO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running [/home/runner/golangci-lint-1.61.0-linux-amd64/golangci-lint run -v --timeout 5m] in [/home/runner/work/k8s-dra-driver/k8s-dra-driver] ...
Error: cmd/nvidia-dra-controller/imex.go:309:11: ST1005: error strings should not be capitalized (stylecheck)
return fmt.Errorf("Error deleting resource slice %s: %w", rs.Name, err)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe your golangci-lint or go versions are different from the one we have on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not the correct line you are changing. That one should be lower case because it is a return statement. The line I'm requesting to change is the klog line which should be uppercase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I understood my error, I was looking into the wrong line
6beddd6 to
0bc9bb6
Compare
|
Ready for a last review |
|
Can you squash these into one commit |
0bc9bb6 to
639192c
Compare
done |
|
Once you have addressed https://github.com/NVIDIA/k8s-dra-driver/pull/186/files#r1812822764 I think we ae good to go. |
Add more synchronization around the shutdown of the IMEX manager Signed-off-by: Kevin Klues <[email protected]> Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
639192c to
8338ab5
Compare
Clean up resourceSlices during exit
Clean up resourceSlices during exit
Clean up resourceSlices during exit
No description provided.