OCPBUGS-64626: fix the files in pvc getting overwritten on each MG run#324
OCPBUGS-64626: fix the files in pvc getting overwritten on each MG run#324praveencodes wants to merge 2 commits intoopenshift:masterfrom
Conversation
|
@praveencodes: This pull request references Jira Issue OCPBUGS-64626, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 WalkthroughThis change adds pod-scoped subpath handling for PVC storage in the must-gather controller. New functions compute SubPathExpr from PVC subPaths with pod name placeholders and inject POD_NAME environment variables. Container construction is updated to use SubPathExpr, and storage information is propagated through templates. Tests and example manifests are added for PVC scenarios. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: praveencodes The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #324 +/- ##
==========================================
+ Coverage 58.56% 59.80% +1.24%
==========================================
Files 8 8
Lines 806 831 +25
==========================================
+ Hits 472 497 +25
Misses 322 322
Partials 12 12
🚀 New features to boost your workflow:
|
6a03eb0 to
28d43fd
Compare
|
@praveencodes: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
OCPBUGS-64626:
Updated subPath with subPathExpr to use $(POD_NAME)
Added the conditional env variable POD_NAME to both gather and upload containers mount the same PVC-backed output volume using volumeMount.subPathExpr.
Added a new example CR examples/mustgather_with_pvc_subpath.yaml showing how to configure PVC storage with subPath.
Updated unit + e2e tests and refreshed related comments to match the new behavior.