-
Notifications
You must be signed in to change notification settings - Fork 37
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
MTV 1595 | PVC name template #1310
base: main
Are you sure you want to change the base?
Conversation
c617aeb
to
9f8ab09
Compare
@@ -512,6 +512,20 @@ spec: | |||
- progress | |||
type: object | |||
type: array | |||
pvcNameTemplate: | |||
description: |- |
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.
@RichardHoch hi, can you have a look at the descriptions ?
391c462
to
e4d4bcd
Compare
e4d4bcd
to
9ba6ce2
Compare
9ba6ce2
to
41902ab
Compare
54d6ca8
to
0bef440
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1310 +/- ##
==========================================
+ Coverage 15.45% 15.61% +0.16%
==========================================
Files 112 112
Lines 23377 23511 +134
==========================================
+ Hits 3613 3672 +59
- Misses 19479 19551 +72
- Partials 285 288 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@mnecas your suggestions worked, build pass now 🎉 |
28205d2
to
dd866ed
Compare
@@ -27,6 +27,10 @@ const ( | |||
// Set the source PVC of the conversion, used on the DV for filtering | |||
AnnConversionSourcePVC = "forklift.konveyor.io/conversionSourcePVC" | |||
|
|||
// Annotation that provides a template for customizing persistent volume claim names | |||
// during the migration process. The template can reference VM and Plan fields. | |||
AnnForkliftPVCNameTemplate = "forklift.konveyor.io/pvc-name-template" |
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.
Why do we need the annotation? Can't we get the information directly form CR?
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.
yes, we can ... woo, will change and ping here ...
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.
updated the code
c5d6602
to
2d42f6a
Compare
2d42f6a
to
d72a95f
Compare
Signed-off-by: yaacov <[email protected]>
d72a95f
to
0d0ad2e
Compare
2265d73
to
d768d5a
Compare
Signed-off-by: yaacov <[email protected]>
d768d5a
to
e0baa22
Compare
Quality Gate passedIssues Measures |
Ref: https://issues.redhat.com/browse/MTV-1595
Issue:
Users operating automation want the capability to know the disk names in the OS in the yamls for the PVC's so they can easily know which PVC is liked to specific volume in a VM.
Fix:
Adding
pvcNameTemplate
field to the Plan CR and to each VM in the VM list of the plan.In the plan YAML:
Screenshots:
pvcNameTemplate fields:
Running plan with custom PVC name: