-
Notifications
You must be signed in to change notification settings - Fork 1.9k
issue-60: Add a configurable health status to the readinessProbe command #62
issue-60: Add a configurable health status to the readinessProbe command #62
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
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.
This looks great! I had one suggestion about making this a bit more generic so that we don't end up with lots and lots of variables to customise other potential params that users might want to tweak.
elasticsearch/values.yaml
Outdated
@@ -118,6 +118,9 @@ readinessProbe: | |||
successThreshold: 3 | |||
timeoutSeconds: 5 | |||
|
|||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html#request-params wait_for_status | |||
minClusterHealthStatus: green |
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.
There are so many custom paramters here that people might want to change other than wait_for_status
. How about making this more generic and having it be something like:
clusterHealthCheckParams: wait_for_status=green&timeout=1s
This is going to make this a lot more maintainable if users want to modify the timeout...or add other settings, or if a feature release of Elasticsearch changes the parameters.
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've updated to that format.
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! Thanks for adding this in!
jenkins test this please |
No description provided.