-
Notifications
You must be signed in to change notification settings - Fork 11
s3fs: remove password file after unmounting #175
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
base: grpc-01
Are you sure you want to change the base?
Conversation
Signed-off-by: Ashima-Ashima1 <[email protected]>
Signed-off-by: Ashima-Ashima1 <[email protected]>
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.
Code changes looks good. Added minor comments. PTAL
pkg/mounter/mounter-s3fs.go
Outdated
|
||
var metaRoot string | ||
if mountWorker { | ||
metaRoot = constants.WorkerNodeMounterPath |
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.
RenameMounter
WorkerNodeMounterPath
---> MounterConfigPathOnHost
pkg/mounter/mounter-s3fs.go
Outdated
if mountWorker { | ||
metaRoot = constants.WorkerNodeMounterPath | ||
} else { | ||
metaRoot = "/var/lib/ibmc-s3fs" |
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.
Declare this as constant.
MounterConfigPathOnPod="/var/lib/ibmc-s3fs"
pkg/mounter/mounter-s3fs.go
Outdated
return nil | ||
} | ||
klog.Info("NodeServer Unmounting...") | ||
return s3fs.MounterUtils.FuseUnmount(target) | ||
err = s3fs.MounterUtils.FuseUnmount(target) |
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.
Move this logic to else
section and keep password file deletion logic at one place only at the end.
Signed-off-by: Ashima-Ashima1 <[email protected]>
Signed-off-by: Ashima-Ashima1 <[email protected]>
Describe your changes
Issue ticket number and link
Checklist before requesting a review