Does --selector in restore operate on backup labels or live cluster resources? #9635
-
|
Hi Velero team 👋 I’m looking for clarification regarding how From the docs, it’s clear how selectors work for backup creation (i.e., selecting resources from the cluster based on labels at backup time). However, for restore, it’s not clear whether the selector is applied:
For example: velero restore create restore-test \
--from-backup my-backup \
--selector app=my-appIn this case, does Velero:
This distinction is important because it affects whether labeling must be done before backup or can be applied later before restore. Additionally, it would be helpful if the documentation explicitly stated:
Thanks in advance for the clarification! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The restore's label filters are applied to the resources taken in the backup. I didn't think about the other ways, because it seems nature to restore based on the backed-up resources instead of the resources in the cluster. |
Beta Was this translation helpful? Give feedback.
The restore's label filters are applied to the resources taken in the backup.
I didn't think about the other ways, because it seems nature to restore based on the backed-up resources instead of the resources in the cluster.