-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
resource label selector not work for cluster scope resources. #5787
Comments
This problem happens also for restores when filtering resources with LabelSelector/OrLabelSelectors. |
@nunojusto I think we can probably use this issue to track the fix for both backup and restore. If the fix ends up getting split into two PRs, then it might make sense to create a second issue for restore, but I suspect that it may be easier to fix both together. |
https://github.com/vmware-tanzu/velero/blob/main/pkg/backup/item_collector.go#L297-L313 @nunojusto Could you also check again whether the |
Moving this out of v1.12 since this seems a non-issue. |
Describe the problem/challenge you have
[A description of the current limitation/problem/challenge that you are experiencing.]
When creating a backup, the user can use
LabelSelector/OrLabelSelectors
to filter resources that should be included, but that rule only works for the namespace scope resource, and not for the cluster scope resource, for example, k8s Deployment resource can be selected by the label selector, but StorageClass cannot.Describe the solution you'd like
[A clear and concise description of what you want to happen.]
LabelSelector/OrLabelSelectors
should also work for cluster scope resources.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
velero version
):kubectl version
):/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: