Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Adds archiveOnDelete parameter to nfs-client provisioner. #905

Merged

Conversation

gmorse81
Copy link
Contributor

@gmorse81 gmorse81 commented Aug 8, 2018

Fixes #596
Adds archiveOnDelete parameter to nfs-client storageClass. Allows user to disable the archiving functionality. Sets the examples and readme to use this behavior.

If this parameter is not included, the old functionality will still work.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 8, 2018
// If it exists and has a value of false, delete the directory.
// Otherwise, archive it.
archiveOnDelete, exists := storageClass.Parameters["archiveOnDelete"]
if exists && archiveOnDelete == "false" {
Copy link
Contributor

Choose a reason for hiding this comment

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

slightly prefer to use strconv.ParseBool here

@wongma7 wongma7 self-assigned this Aug 8, 2018
@wongma7
Copy link
Contributor

wongma7 commented Aug 9, 2018

/lgtm
thank you.
feel free to squash commits. i will merge it regardless in a little bit.
i am going to hold off on pushing a new image to quay until next week because I want to wait for leader election to get merged as well

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 9, 2018
@k8s-ci-robot k8s-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 9, 2018
@gmorse81
Copy link
Contributor Author

gmorse81 commented Aug 9, 2018

@wongma7 i squashed, but also removed an extra blank line that didn't need to be there. the lgtm was removed.

@wongma7
Copy link
Contributor

wongma7 commented Aug 9, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 9, 2018
@wongma7 wongma7 merged commit cc5b9cd into kubernetes-retired:master Aug 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/nfs-client cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants