This PR solves restoring a single snapshot file (when using backupcommand annotation). Issue: #803
I added a function to check if the snapshot contains one file, no need to create a folder and then symlinked this folder with a real restore path (In #803, when the restore snapshot makes panic because of the use of PVC path)
Also I solved the problem in the make file when using another build of yq package (File: e2e/kind.mk)
Checklist
For Code changes
[ ] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[ ] PR contains the label area:operator
[x] Link this PR to related issues
[x] I have not made any changes in the charts/ directory.
Summary
backupcommand
annotation). Issue: #803I added a function to check if the snapshot contains one file, no need to create a folder and then symlinked this folder with a real restore path (In #803, when the restore snapshot makes panic because of the use of PVC path)
yq
package (File:e2e/kind.mk
)Checklist
For Code changes
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelogarea:operator
charts/
directory.