-
Notifications
You must be signed in to change notification settings - Fork 778
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
Preserve name of the PV directory name during archiving #59
Preserve name of the PV directory name during archiving #59
Conversation
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.
LGTM. I didn't realised this was changed in the latest version. But this feature was quite useful in the beginning. And sorry I haven't been tracking this closely.
I'd like to hear other reviewers on why this was changed
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackielii, petermicuch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
i think it coming from the naming of the variable path := volume.Spec.PersistentVolumeSource.NFS.Path
pvName := filepath.Base(path)
oldPath := filepath.Join(mountPath, pvName)
archivePath := filepath.Join(mountPath, "archieved-"+pvName) when @Bledai add the support reclaim policies (#6) I beleive he thought that he is not changing behavior or getting the expected behavior by changing: archivePath := filepath.Join(mountPath, "archived-"+pvName) to: archivePath := filepath.Join(mountPath, "archived-"+volume.Name) anyway, lgtm. |
@jsafrane is it possible to get this one in without review from @ashishranjan738 ? I see him as required reviewer, but usually only @jackielii reacts to commits in this project. |
/lgtm |
This change brings back functionality that was present in the retired nfs-client-provisioner and introduced behavioral change. Having folder that includes namespace, pvc name and pv name also in archived state is beneficial and it is what always made this provisioner different from i.e. AzureFile and similar, where you have to browse and search a long time until you get to your desired archived/created folder.