-
Notifications
You must be signed in to change notification settings - Fork 219
Discover existing snapshots on disk #161
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
Discover existing snapshots on disk #161
Conversation
Welcome @ashish-amarnath! |
Hi @ashish-amarnath. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7cba47b
to
c63764b
Compare
This was verified on a 1.17 cluster.
Inspecting storage objects
Inspecting data on the hostpathplugin driver's disk
Inspecting the data on the pod using the
|
/ok-to-test |
This is very useful to test pre-provisioned snapshots. Can you also add steps on how you manually create those snapshots? |
@xing-yang I've added release notes in the PR description.
Create the above pod and exec into the pod and inspect contents of
The checksums of the Verify the state of the kubernetes storage objects
This above test demonstrates the ability of this driver to import existing snapshots and provision volumes using the data in the volumesnapshot. Thus verifying this PR. |
43facca
to
4235b0a
Compare
@ashish-amarnath For release note, you only need: The PR info will be taken care when this driver is released. |
It should be the provisioner not the snapshot controller that provisions the PV. |
s/snapsthot/snapshot You are only creating PV that uses the snapshot as data source, but not creating the source PV/PVC for this snapshot, right? |
4235b0a
to
57ceca3
Compare
I am creating I've also updated the comment w/ this clarification. |
Can you rework this based on this change? #162 |
873f0f8
to
577cf76
Compare
ff87f17
to
0c79a04
Compare
/lgtm |
25b7ca5
to
0c79a04
Compare
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.
Thank you for adding comprehensive unit tests! Just some minor comments
ce42aad
to
c3cd442
Compare
Signed-off-by: Ashish Amarnath <[email protected]>
c3cd442
to
a446c15
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashish-amarnath, msau42, xing-yang 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 |
prow.sh: fix mock testing
Signed-off-by: Ashish Amarnath [email protected]
What type of PR is this?
/kind feature
What this PR does / why we need it:
This change lets this driver discover existing snapshots on disk and therefore improves testability of the scenario of "Importing an existing volume snapshot with Kubernetes"
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: