PSMDB editing storage is not reflected on the next backup taken, only on the second and later
Description
Steps to reproduce: If you create backup storage, create a cluster and then later edit backup storage and change bucket name and/or credentials, it will do the backup in the old bucket/credentials or sometimes fail, but then on the subsequent try it will start using the new info.
$ k get psmdb-backup NAME CLUSTER STORAGE DESTINATION TYPE STATUS COMPLETED AGE backup-bbq mongodb-tio tomislav-backup-test s3://tomislav-backup-test/mongodb-tio/35751325-b3f1-4d22-8fd0-9e9a82703e28/2024-05-17T12:11:56Z logical ready 3s 38s backup-ruf mongodb-tio tomislav-backup-test s3://tomislav-backup-test/mongodb-tio/35751325-b3f1-4d22-8fd0-9e9a82703e28/2024-05-17T12:06:46Z logical ready 5m14s 5m48s cron-mongodb-tio-20240517114500-mczqv mongodb-tio tomislav-backup-test s3://tomislav-backup-test/mongodb-tio/35751325-b3f1-4d22-8fd0-9e9a82703e28/2024-05-17T11:45:21Z logical ready 26m 27m cron-mongodb-tio-20240517115500-vbhsc mongodb-tio tomislav-backup-test s3://tomislav-backup-test/mongodb-tio/35751325-b3f1-4d22-8fd0-9e9a82703e28/2024-05-17T11:55:42Z logical ready 16m 17m
As you can see all backups are done to tomislav-backup-test bucket, but backup-bbq should have been done to tomislav-backup-test-binlogs bucket since I edited the backup storage and changed the bucket name.
So if you change credentials like I did later (I changed the account completely, bucket, and credentials) the backup will fail, but then the next one will succeed.
Steps to reproduce:
If you create backup storage, create a cluster and then later edit backup storage and change bucket name and/or credentials, it will do the backup in the old bucket/credentials or sometimes fail, but then on the subsequent try it will start using the new info.
As you can see all backups are done to tomislav-backup-test bucket, but backup-bbq should have been done to tomislav-backup-test-binlogs bucket since I edited the backup storage and changed the bucket name.
So if you change credentials like I did later (I changed the account completely, bucket, and credentials) the backup will fail, but then the next one will succeed.