-
Bug
-
Resolution: Done
-
Normal
-
None
-
ACM 2.12.0
Description of problem:
related to https://issues.redhat.com/browse/ACM-12973
When the user sets a OrLabelSelector or a LabelSelector on the acm restore resource,
these labels are set on all velero restore resources.
The issue is that the label object is shared by all restore resources so when a new label is added to one restore, it shows up in all
For a passive restore, the activation label is set on the creds and generic restores. It ends up on the managed cls restore as well
Version-Release number of selected component (if applicable):
How reproducible:
Always when user sets a OrLabelSelector or a LabelSelector on the acm restore resource
Steps to Reproduce:
- Create an ORLabelSelector on the acm restore resource
- Set the acm restore using
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Restore
metadata:
name: restore-acm-passive-sync
namespace: open-cluster-management-backup
spec:
syncRestoreWithNewBackups: true # restore again when new backups are available
restoreSyncInterval: 10m # check for new backups every 10 minutes
cleanupBeforeRestore: CleanupRestored
veleroManagedClustersBackupName: latest
veleroCredentialsBackupName: skip
veleroResourcesBackupName: skip
- Activation resources label is set on the generic and creds restore, so that only activation credentials and generic resources are restored.
Actual results:
Issue: the label is also shared by the managed cls restore so then no managed clusters are restored ( since none have the activation label )
Expected results:
The activation label should not be set on the managed cls restore