fix(chart): derive probe ports from healthProbeBindAddress - #478
Open
vamsikrishna-siddu wants to merge 1 commit into
Open
vamsikrishna-siddu wants to merge 1 commit into
vamsikrishna-siddu wants to merge 1 commit into
Conversation
The deployment template hardcoded port 8081 for the container port and for the liveness and readiness probes, so overriding healthProbeBindAddress left kubelet probing a port the controller was not listening on. Derive all three from healthProbeBindAddress, and omit the container port and probes when the endpoint is disabled with "0" or an empty value, which is how controller-runtime turns the health probe off. Signed-off-by: Vamsi Krishna Siddu <vamsikrishna.siddu@ibm.com>
✅ Deploy Preview for node-readiness-controller ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vamsikrishna-siddu The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/assign @pravk03 could you please take look? |
Contributor
|
/cc @ajaysundark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The node-readiness-controller Helm chart exposes healthProbeBindAddress, but the container port, liveness probe and readiness probe were hardcoded to 8081. If we override it, kubelet still probes 8081, which is not open. All three are now derived from the healthProbeBindAddress value via _helpers.tpl.
The controller already treats --health-probe-bind-address set to "0" or "" as "don't serve health probes at all", so the chart now omits the container port and both probes for those values. I also corrected the indentation of the ports block.
Related Issue
Fixes #474
/kind bug
Testing
Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
Doc #(issue)
None
Generative AI Usage Disclosure
How they were used:
I have Used Claude Code to investigate the issue, draft the _helpers.tpl change, the deployment.yaml template change and the chart unit tests, and to reproduce the failure on a local kind cluster. I reviewed every change and re-ran the chart unit tests, helm lint, and the kind deployment myself before submitting.