-
Notifications
You must be signed in to change notification settings - Fork 268
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
Propagate labels from the DVs to the importer pods #2894
Comments
We had a similar issue recently with passing the priority class: |
Yes, just for labeling so I don't think it needs to be allowed, just passed from the PVC (as the labels passed from the DV to the PVC) containerized-data-importer/pkg/controller/import-controller.go Lines 1046 to 1050 in 18e6607
|
Not sure I understand - do you suggest we pass labels from DV/PVC to importer pods? |
Yes, that's what I suggest. If it raise security context maybe it can be limited to allowed ones? I think kubevirt already passing labels from resource to pod - e.g virt-launcher https://github.com/kubevirt/kubevirt/blob/main/pkg/virt-controller/services/template.go#L1403C11-L1403C11 |
Yeah, that's what we do with annotations |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
/remove-lifecycle rotten |
Closing this since the main issue seems to have been addressed. Feel free to reopen if necessary, thanks! |
Is your feature request related to a problem? Please describe:
We wish to clean up the importer pods after the migration succeeds. For cold migrations it uses only single importer pod and we can get it by annotation in the PVC (
cdi.kubevirt.io/storage.import.importPodName
). But in case we do warm migration it uses more than one importer pod and PVC, the scratch ones.We set labels on the DVs such as:
That will make it easy to get the related importer pods based on that using label selector.
Describe the solution you'd like:
Labels that set in the DV will propagate to the importer pods.
Additional context:
More details in: kubev2v/forklift#588 (comment)
The text was updated successfully, but these errors were encountered: