fix: drop mac-address annotation from vm template to prevent MAC address reusing (#663)

related-to: harvester/harvester#9788
related-to: harvester/harvester#9798

Signed-off-by: Tim Liou <tim.liou@suse.com>
This commit is contained in:
Tim Liou
2026-01-02 17:24:57 +08:00
committed by GitHub
parent 49374bb18a
commit 1352246e1e
2 changed files with 2 additions and 0 deletions
@@ -254,6 +254,7 @@ export default {
return volume;
});
delete cloneVersionVM.metadata.annotations[HCI_ANNOTATIONS.MAC_ADDRESS];
cloneVersionVM.metadata.annotations[HCI_ANNOTATIONS.VOLUME_CLAIM_TEMPLATE] = JSON.stringify(deleteDataSource);
// Update instance labels, labels and annotations