fix(vault): exit token renewal when setup fails - #7940
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
|
Thanks. Is it possible to add an unit test for this? |
d73e76a to
5900d5b
Compare
5900d5b to
8eac163
Compare
|
@rickbrouwer sure, updated |
|
It isn't really affected by this PR, but maybe we can take it into account. But with the early return, a failed |
|
/run-e2e vault passed tests: 3failed tests: 0 |
checking the error messages, I agree they are a bit confusing, but since they have been that way for a long time, I'm ok addressing those separately
wondering if it's possible to run the renewal in a forever async loop like it's done for the elastic forecast scaler? keda/pkg/scalers/elastic_forecast_scaler.go Line 140 in 5744068 |
Signed-off-by: Artem Muterko <artem@sopho.tech>
69eb94e to
b253f20
Compare
|
/run-e2e vault
setup / teardown failures: 1passed tests: 0failed tests: 0 |
renewTokencalledRenew()on a nil watcher afterRenewSelffailed, panicking the operator.Stop()closesstopChrather than sending.vh.clientbefore the goroutine.Checklist
Fixes #7939