Thanks for this.
From the screenshot, I see that you have also added a hook phase to run before the snapshot during the backupaction. Is it a different blueprint that you want to run before the actual mariaDB blueprint execution ?
The error `Could not render Object reference` is coming from the hook phase that you have added in the policy. This is because the hooks run with the namespace as blueprint subject rather than the statefulset.
So any templates pointing to statefulset like ‘{{ .StatefulSet.Name }}’ would not evaluate.
Annotation that you added will execute the blueprint during backup. You don’t need to add a hook seperately in the policy. Policy Hooks are not designed to run the backup/data operations.
These are just designed to run few commands that can be used to prepare your app/db before/after backup.
If you have mistakenly added the blueprint to the before snapshot hook, Please edit the policy, remove it and then retry the policy.