-
Notifications
You must be signed in to change notification settings - Fork 3.7k
chore(helm): Refactor loki health probes #18575
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
base: main
Are you sure you want to change the base?
Conversation
My local search for |
I only did the ones that clearly caused errors with the values files from ci. But you are probably right – all of them should be updated. EDIT: Or should they? 🤔 Clearly, all the "bad" uses should be improved, so a I'll try and split it up into different commits so you can review them individually and choose which ones belong here. |
44c893b
to
b1c3ed2
Compare
b1c3ed2
to
313a814
Compare
32e22d6
to
a3e2585
Compare
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.
Great PR! I personally like this pattern and should be used everywhere.
I just found one odd thing, it's optional here and maybe a separate PR worth.
Just comment what did you think.
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.
Missing a Changelog entry and this PR feel more "feat(helm)" than "chore(helm)"
Thanks, I'll add that!
Indeed, that's why I think 32e22d6 does not belong here – because that is a new feature: ![]() The more I think about it, the more strongly I feel that I should revert that commit. Otherwise, this PR is no longer "Refactor loki health probes" but has grown from it's original scope. Do you agree? |
From my point of view, both is fine.
We should not over engineer this. In best case, all your PRs are included in the same Loki Release and there is zero difference for the end-user. |
Thanks! Then I'll revert the commit! Just a minute! |
This change refactors all existing uses of `.Values.loki.readinessProbe` and `.Values.loki.livenessProbe` so that they treat the value `{}` as meaning that the probe should be disabled. Some components used `.Values.loki.livenessProbe` despite it not being set in values.yaml. So if that value gets introduced with `{}` as the default value, then it would break things without this refactoring. Signed-off-by: Andreas Lindhé <[email protected]>
Signed-off-by: Andreas Lindhé <[email protected]>
9831450
to
b1147e1
Compare
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.
LGTM
What this PR does / why we need it:
Some components used
.Values.loki.livenessProbe
and.Values.loki.startupProbe
despite them being unset in values.yaml. This change adds those parameters.Introducing these parameters with
{}
as the default value breaks the existing logic, since they previously had the valuenull
(because they were unset).But we want to have
{}
as the default value, notnull
, to indicate that the parameter is an object.So therefore, this change also refactors the existing logic so it handles
{}
properly.Which issue(s) this PR fixes:
Partially addresses #13678
Special notes for your reviewer:
Partially replaces #15359
Checklist
CONTRIBUTING.md
guide (required)feat
PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.md
deprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR