-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Postpone Deletion of a Persistent Volume Claim in case It Is Used by a Pod #55824
Postpone Deletion of a Persistent Volume Claim in case It Is Used by a Pod #55824
Conversation
/sig storage @pospispa can you please rebase? |
/kind feature I'll take the PR from here and rebase & update it. |
Approved 1.9 milestone. |
Marking as WIP, this needs more than a rebase. |
321ff39
to
71c986e
Compare
created #55873 just with kubectl changes |
71c986e
to
b83c4b4
Compare
|
b83c4b4
to
36b00cd
Compare
36b00cd
to
ed4b61b
Compare
PVC Protection alpha feature was merged in PRs: - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55873 PVC Protection E2E tests are in PR: kubernetes/kubernetes#56931 Adding the PVC Protection tests into the list of Alpha feature tests that are run.
…-thockin-during-review-of-PR55824 Automatic merge from submit-queue (batch tested with PRs 56401, 56506, 56551, 56298, 56581). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Addressing Comments from Code Review **What this PR does / why we need it**: addressing comments from code review: #55824 (review) **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: N/A **Special notes for your reviewer**: @thockin @jsafrane @msau42 PTAL **Release note**: ```release-note NONE ```
PVC Protection alpha feature was introduced in PRs: - kubernetes#55824 - kubernetes#55873 That's why E2E tests for this feature are added.
…used-in-a-pod-e2e-tests Automatic merge from submit-queue (batch tested with PRs 57324, 56931, 57000, 57150, 56965). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. PVC Protection Alpha Feature E2E Tests **What this PR does / why we need it**: PVC Protection alpha feature was introduced in PRs: - #55824 - #55873 This PR adds E2E tests for this feature. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: N/A **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
PVC Protection alpha feature was merged in PRs: - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55873 PVC Protection E2E tests are in PR: kubernetes/kubernetes#56931 Adding the PVC Protection tests into the list of Alpha feature tests that are run.
…leted PVC Protection feature consists of the below PRs: - kubernetes/kubernetes#55873 - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55957 The PRs #55873 and #55824 were merged into K8s 1.9, however, the PR #55957 was merged into K8s 1.10. That's why this PR is backported. This commit modifies scheduler in such a way that it does not schedule a pod that uses a PVC that is being deleted.
…leted PVC Protection feature consists of the below PRs: - kubernetes/kubernetes#55873 - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55957 The PRs #55873 and #55824 were merged into K8s 1.9, however, the PR #55957 was merged into K8s 1.10. That's why this PR is backported. This commit modifies scheduler in such a way that it does not schedule a pod that uses a PVC that is being deleted.
…leted PVC Protection feature consists of the below PRs: - kubernetes/kubernetes#55873 - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55957 The PRs #55873 and #55824 were merged into K8s 1.9, however, the PR #55957 was merged into K8s 1.10. That's why this PR is backported. This commit modifies scheduler in such a way that it does not schedule a pod that uses a PVC that is being deleted.
PVC Protection alpha feature was added to K8s 1.9 in PRs: - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55873 and documented in K8s 1.9 in PR: - kubernetes/website#6415 That's why the PVC Protection is a new alpha feature in OpenShift 3.9 and that's why PVC Protection documentation is added.
Hi, Regards, |
Your pods have been completed but have they been deleted? |
Hi @msau42 |
Yes, I believe the volumes are still mounted until you delete the Pod too. |
Well...and thanks so much for your reply. |
Addressing comments from code review (kubernetes/kubernetes#55824 (review)) in order to simplify the code.
What this PR does / why we need it:
to fix #45143
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #45143
Special notes for your reviewer:
Design: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/postpone-pvc-deletion-if-used-in-a-pod.md
@msau42 @jsafrane @gnufied PTAL
Release note: