You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MTV-3353 | Remove populator finalizers from PVCs during archive
This PR enhances the plan archive mechanism with a two-tier cleanup strategy
and ensures PVC populator finalizers are properly removed.
Archive Cleanup Strategy:
- Tier 1: Delete all temporary resources by plan label (pods, secrets,
configmaps, jobs, populator CRs) and remove populator finalizers from
all PVCs
- Tier 2: Loop over migration history - apply VM status logic for current
migration (preserve successful VMs, delete failed if DeleteVmOnFailMigration),
delete ALL resources unconditionally for previous migrations
Labeler Refactoring:
- Add VMLabelsWithExtra() method to centralized Labeler for provider-specific
labels while ensuring core labels (plan, migration, vmID) are always present
- Refactor oVirt, OpenStack, and vSphere builders to use centralized Labeler
instead of manually creating label maps
- Add plan label to OvirtVolumePopulator and OpenstackVolumePopulator utils
Tests:
- Add unit tests for plan and migration cleanup functions
- Fix vSphere builder tests to properly initialize Labeler in Context
Ref: https://issues.redhat.com/browse/MTV-3353
Resolves: MTV-3353
Signed-off-by: yaacov <yzamir@redhat.com>
0 commit comments