[Helm charts] Properly quote boolean values#10681
Conversation
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
ebeahan
left a comment
There was a problem hiding this comment.
LGTM. Thanks @pkoutsovasilis for the pointer to a fix.
pkoutsovasilis
left a comment
There was a problem hiding this comment.
hey @ycombinator, thanks for addressing this one. One proposal; go ahead add the insecure: true and force: true in the example you mention in the local testing. Then run mage helm:renderExamples and push all affected files in this PR. This way this will be always checked in the CI and hopefully will prevent any future issues with that
💛 Build succeeded, but was flaky
Failed CI Stepscc @ycombinator |
With Similarly, with |
pkoutsovasilis
left a comment
There was a problem hiding this comment.
@ycombinator look at the README.md of this example we don't actually propose the users to use these values, we just have the values there to validate what we propose in the README actually works. So with that said, it feels ok to introduce some slight deviation between the README.md proposal and the under-the-hood values to increase our testing footprint. Your call, the change LGTM
swiatekm
left a comment
There was a problem hiding this comment.
Can you set these in one of the example configs, so we can see that the values are now rendered correctly?
|
@Mergifyio backport 8.19 9.0 9.1 9.2 |
✅ Backports have been createdDetails
|
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment (cherry picked from commit 815dd3e)
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment (cherry picked from commit 815dd3e)
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment (cherry picked from commit 815dd3e)
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment (cherry picked from commit 815dd3e)
Shoot, I missed this comment before hitting merge. Sorry about that! FWIW, I did test this locally; the steps are mentioned in the PR's description under "How to test this PR locally". |
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment (cherry picked from commit 815dd3e)
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment (cherry picked from commit 815dd3e)
* Properly quote boolean values in Helm charts * Adding CHANGELOG fragment
What does this PR do?
This PR fixes the quoting of boolean values
agent.fleet.insecureandagent.fleet.force.Why is it important?
Prior to the fix, the rendered values for these fields would appear like so, with an extra pair of quotes, which was causing the rendered value to be ineffective:
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature works./changelog/fragmentsusing the changelog toolI have added an integration test or an E2E testDisruptive User Impact
None; fixes a bug.
How to test this PR locally
insecure: truehere.mage helm:renderExamplesThanks @pkoutsovasilis for suggesting the fix and testing steps.