Closed jfroy closed 7 months ago
Hi, appreciate the PR. The tests are failing.
Even better would be also updating a test that reproduces the original problem, but i'm ok with any placeholder value really.
Hi, appreciate the PR. The tests are failing.
Even better would be also updating a test that reproduces the original problem, but i'm ok with any placeholder value really.
I forgot to update the tests :cry:
Even better would be also updating a test that reproduces the original problem, but i'm ok with any placeholder value really.
I am not sure how I would write that test. I'd have to define a chart with a template component to invoke helm template against, or use an existing chart online somewhere (but it seems like a bad idea to pull some external chart for tests).
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.49%. Comparing base (
0b49728
) to head (745632a
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Even better would be also updating a test that reproduces the original problem, but i'm ok with any placeholder value really.
I am not sure how I would write that test. I'd have to define a chart with a template component to invoke helm template against, or use an existing chart online somewhere (but it seems like a bad idea to pull some external chart for tests).
Yes, I agree this is in general a bad practice. However, this i show the tests in tests/tool/test_get_hr.py
work where each directory under https://github.com/allenporter/flux-local/tree/main/tests/testdata
has a test repo in it. A better option is to have a local helm chart with the problem capabilities that also reproduces the issue.
Consider it for a future PR.
Thanks @jfroy 💯
In templates that don't quote, the previous placeholder value
**PLACEHOLDER**
would be interpreted as a yaml anchor reference and potentially cause templating exceptions.For example, with the tailscale-operator helm chart, it has this resource:
Since oauth.clientId and oauth.clientSecret are expected to be secrets, when running with flux-local they would end up with the placeholder value, yielding this exception: