-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[incubator/vault] Add ability to configure liveness/readiness probe thresholds #23282
Conversation
…resholds. Signed-off-by: Adam Hamsik <adam.hamsik@lablabs.io>
Hi @haad. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
failureThreshold: {{ .Values.vault.readiness.failureThreshold }} | ||
successThreshold: {{ .Values.vault.readiness.successThreshold }} | ||
timeoutSeconds: {{ .Values.vault.readiness.timeoutSeconds }} |
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.
How about making these values the default unless overridden?
failureThreshold: {{ .Values.vault.readiness.failureThreshold }} | |
successThreshold: {{ .Values.vault.readiness.successThreshold }} | |
timeoutSeconds: {{ .Values.vault.readiness.timeoutSeconds }} | |
failureThreshold: {{ .Values.vault.readiness.failureThreshold | default 3 }} | |
successThreshold: {{ .Values.vault.readiness.successThreshold | default 1 }} | |
timeoutSeconds: {{ .Values.vault.readiness.timeoutSeconds | default 1 }} |
This way we only have to set these in the values.yaml when needed?
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.
I realize that vault.readiness.initialDelaySeconds
and vault.readiness.periodSeconds` should also follow the same convention and currently they don't! 😄
Same goes for the liveness
thresholds!
failureThreshold: {{ .Values.vault.liveness.failureThreshold }} | ||
successThreshold: {{ .Values.vault.liveness.successThreshold }} | ||
timeoutSeconds: {{ .Values.vault.liveness.timeoutSeconds }} |
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.
Similarly to the below:
failureThreshold: {{ .Values.vault.liveness.failureThreshold }} | |
successThreshold: {{ .Values.vault.liveness.successThreshold }} | |
timeoutSeconds: {{ .Values.vault.liveness.timeoutSeconds }} | |
failureThreshold: {{ .Values.vault.liveness.failureThreshold | default 3 }} | |
successThreshold: {{ .Values.vault.liveness.successThreshold | default 1 }} | |
timeoutSeconds: {{ .Values.vault.liveness.timeoutSeconds | default 1 }} |
failureThreshold: 3 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 |
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.
These can now be removed 🤷
failureThreshold: 3 | |
successThreshold: 1 | |
timeoutSeconds: 1 |
failureThreshold: 3 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
|
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.
failureThreshold: 3 | |
successThreshold: 1 | |
timeoutSeconds: 1 |
Hi @haad , thanks so much for the PR! Just a small suggestion. Please let me know what you think and if it makes sense. 😄 |
IMO I don't like default variables in templates as then I have to search for them in 2 places instead of one (default values). If we don't want to keep them in default values file I can make them optional. |
I see your point. Agree. Let's go ahead and leave the new thresholds the way they are, defined in the default values! 👍 |
/ok-to-test |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haad, jbialy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…resholds. (helm#23282) Signed-off-by: Adam Hamsik <adam.hamsik@lablabs.io> Co-authored-by: Marian Soltys <msoltys@pixelfederation.com> Signed-off-by: Adrien Loiseau <adrien.loiseau@logic-immo.com>
…resholds. (helm#23282) Signed-off-by: Adam Hamsik <adam.hamsik@lablabs.io> Co-authored-by: Marian Soltys <msoltys@pixelfederation.com> Signed-off-by: Miguel Mingorance <miguel.mingorance@deliveryhero.com>
What this PR does / why we need it:
Add ability to configure liveness/readiness probe thresholds and improves missing documentation.
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/mychartname]
)