Open kaovilai opened 1 month ago
@kaovilai Seems the issue has already been resolved?
User resolved their immediate issue but @sseago and I think there may be some usability enhancements to make include/exclude behave the same on restore as backup.
@kaovilai Could you change the description of this issue to clarify why the include/exclude behaviour is inconsistent for backup and restore and which part needs to improve?
@ywk253100 based on the linked issue above, I think what's going on is this: For namespaced backups, related cluster-scoped resources are pulled in -- in the above case, clusterroles and clusterrolebindings For namespaced restores, though, those related cluster-scoped resources are excluded.
Consider these 2 cases. First case:
Second case:
It may be that all we need here is corresponding RIAs that pull in related cluster-scoped resources as we do in BIAs.
And yes ! My issue is resolved. User error.
Because I created the Backup CR using
I automatically used that in the Restore CR too.. which caused the clusterscoped resources not to be restored. Removing the 'includedNamespaces' directive from the Restore CR caused everything to restore fine !
Thanks Kaovilai and Blackpiglet for your help !
Originally posted by @PieterVoet in https://github.com/vmware-tanzu/velero/discussions/7797#discussioncomment-9456798