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
fix: add jq raw output flag (#3085) #3087
Conversation
Genuine question, why did we stop using the hardcoded |
@kloon15 I mean, why are you telling that to me? 😅 Edit: Also, there will always be somebody that does something that "should not be done" for a reason that makes sense to them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and sorry to have caused the issue!
Also my bad for not documenting more the reason of that change, more than just the error it gave me.
EDIT 2024.04.17: the reason was I needed FB to listen on 10.0.0.38 (so not localhost) so the healthcheck querying it on localhost wouldn't work. If the variable FB_ADDRESS is exposed, the healthcheck should adapt to it, so it needed a fix. Well, yes the fix missed on that jq corner case, my bad on that one.
This listening was needed I think for my host firewall to work correctly to restrict intra containers communication, or for reverse proxy reasons, not 100% sure why anymore but i was definitely needed.
@qdm12 Couldn't you just override the healthcheck in the deployment of your container since it is a runtime option? |
It would be nice to merge this PR rather soon, it's only 2 lines 😉 Tagging as a reminder @o1egl thanks 👍 @saltydk I did override the healthcheck script to test it out, and thought I would contribute with a PR, I didn't foresee the impact with jq not handling empty fields properly. When you say
I could propose the exact same to you today, just override the healthcheck, but it's not really a solution, is it? |
A user runtime based override on something fairly niche makes more sense to me than changing the image but they merged it so it is what it is. Was just wondering is all. |
@saltydk If the change impacts normal operation, then yes, but this was supposed to be a change that would benefit some without downsides to the rest. Being more accessible and easy to use for more people is always good. We are all humans, we make mistakes, no need to make a mountain out of a molehill. |
Merged as part of the #3130 |
Description
Use jq's "raw output" flag so it doesn't introduce unwanted double quotes in its output.
Closes #3085, Closes #3092, Closes #3139