Allow overrides for livenessProbe and readinessProbe actions through helm values #481
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request moves the 'exec' actions from liveness and readiness probes out to the values.yaml so they can be overridden.
The problem this fixes is when deploying the sonarqube using the helm chart but with hardened container images (for security), the hardened images are often minimal and don't contain extra executables like wget, hostname, etc.
This allows us to specify an alternate, simpler probe strategy when deploying to one of these hardened environments, but maintains the current behavior as default.
With the current helm chart, we have to maintain a fork of the chart to change the probes for some environments.
Relates to this discussion: https://community.sonarsource.com/t/helm-chart-probes-issue-with-hardened-container-images-no-wget/114377
This change also has the added benefit of consolidating the probe definitions between the StatefulSet and the Deployment types.
Please ensure your pull request adheres to the following guidelines:
CHANGELOG.md
file of the respected chart as well as theChart.yaml