-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K8SPSMDB-1035: Allow empty secretName for backup jobs #1377
Conversation
@tadjik1, please sign the CLA |
@tadjik1 thank you for your contribution. These changes confuse me a little bit because we already should have this functionality and even have a test for it. Could you please share steps to reproduce? @nmarukovich could you please check if this problem is valid? |
@tadjik1 please run gofmt on files you changed |
@nmarukovich please review |
commit: eeba153 |
Hi @tadjik1 thank you for your contribution. We will include your fix in the next PSMDB release. |
* K8SPSMDB-1035 test case for #1377 * Update e2e-tests/pitr-sharded/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update e2e-tests/pitr-sharded/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
CHANGE DESCRIPTION
Problem:
Empty
secretName
results in errors in the operator:Cause:
Logic doesn't incorporate possibility of empty secretName which is normal behaviour for the backup jobs running directly on EC2 instances.
https://docs.percona.com/percona-operator-for-mongodb/backups-storage.html
Solution:
Get rid of the log message by ignoring empty secret (do not validate file existence in that case).
I'm extremely new to this project (actually just opened the source code for the first time today), so I'm not sure which Jira ticket needs to be created and whether I need to write tests for this (it seems that tests are missing for this module).
CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
compare/*-oc.yml
)?Config/Logging/Testability