-
Notifications
You must be signed in to change notification settings - Fork 6
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
Added support for CSI-PowerScale #119
Conversation
log.Infof("CSI Driver for Unity") | ||
monitor.Driver = new(monitor.UnityDriver) | ||
} else if strings.Contains(*args.driverPath, "isilon") { // added condition to create instance of PowerScale driver | ||
case strings.Contains(*args.driverPath, "isilon"): | ||
// added condition to create instance of PowerScale driver |
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.
don't really need this
@Sakshi-dell can you close the comments from Florian and we can merge this PR. |
@alexemc @gallacher @sharmilarama need codeowner approval to merge this PR. Please approve. |
|
||
// FinalCleanup handles any driver specific final cleanup. | ||
func (d *PScaleDriver) FinalCleanup(rawBlock bool, volumeHandle, pvName, podUUID string) error { | ||
return nil |
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.
Any corner cases where podmon needed to cleanup. If there anything we should add here.
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.
Please add automated unit test for code coverage.
4f1918c
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.
What you have so far looks pretty good. I left a couple of comments to think about.
I am concerned about lack of staging directory in driver.go.
I think you probably will want to add additional tests.
Tom
|
||
// GetStagingMountDir Returns the staging directory used by NodeUnstage for a mount device. | ||
func (d *PScaleDriver) GetStagingMountDir(volumeHandle, pvName string) string { | ||
return "" |
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.
Is there not a separate staging directory? What do you expect to be passed as the staging directory to node unstage?
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.
PowerScale does not have a separate staging path, we have not implemented NodeStage/NodeUnstage Volume.
Description
A few sentences describing the overall goals of the pull request's commits.
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Unit-test Output
PASS
coverage: 92.6% of statements
status 0
ok podmon/internal/monitor 8.603s coverage: 92.6% of statements