But the documentation specifically states that I should NOT do that when restoring from a S3 source. And indeed, when I do: it says it’s an illegal option. :
set spec.backupSource subsection instead of spec.backupName field to point on the appropriate PVC or S3-compatible storage:
Seems you’ve come across some bug then if it’s telling you one thing but not accepting the option. I suggest you check on https://jira.percona.com/ for possible other reports, or report the issue yourself so our enginners can take a look.
Thank you for submitting this. I ran the test today to check the error and here are the findings:
I was able to reproduce the issue using YAML file almost similar to yours - restoration does not happen, but I have not seen the error “backupName can’t be empty”.
+ mc -C /tmp/mc config host add dest https://s3.amazonaws.com ACCESS_KEY_ID SECRET_ACCESS_KEY
mc: <ERROR> Unable to initialize new alias from the provided credentials. The AWS Access Key Id you provided does not exist in our records.
I thought that my keys are wrong, but then I noticed that it tries to connect to https://s3.amazonaws.com instead of https://storage.googleapis.com which I specified in my restore.yaml.
The fix is simple - replace
endpointURL: https://storage.googleapis.com
with
endpointUrl: https://storage.googleapis.com
Kubernetes + YAML definitions are case sensitive, yes.
It is the typo in our documentation and I already sent the PR to fix this. Sorry for confusion here.
But as long as you have some other error - please see questions below.
Could you please clarify where do you see the backupName can’t be empty error?
Which version of the operator are you running? If I’m not mistaken restoration from S3 bucket without Restore object was introduced in v1.5.0.