Closed DionJones615 closed 1 week ago
thanks for your contribution!
Could you please merge the upstream master on your PR? I want to run the new tests with the backup image built on the fly and used before merging this PR.
About the multiple backup/restore issue I replied here: https://github.com/jenkinsci/kubernetes-operator/issues/962#issuecomment-2183917431
Changes
Move
bar.Client.Update()
function beneath thebar.Client.Get()
function to prevent a situation that causes the reconciliation to repeat itself at this point, causing two full restores to complete at every startup.The same can be true of a backup if/when the operator restarts and bar.Client.Get() has not run yet.
Before Fix:
After Fix:
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:
See the contribution guide for more details.
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS.
Release Notes