Skip to content

feat: add optional healthcheck for node-driver-registrar#1026

Merged
k8s-ci-robot merged 4 commits intokubernetes-csi:masterfrom
ajhetherington:master
Jan 31, 2026
Merged

feat: add optional healthcheck for node-driver-registrar#1026
k8s-ci-robot merged 4 commits intokubernetes-csi:masterfrom
ajhetherington:master

Conversation

@ajhetherington
Copy link
Copy Markdown
Contributor

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test

/kind feature

/kind flake

Also technically an api change

What this PR does / why we need it:
This PR adds an optional healthcheck for the node-driver-registrar container, using it's healthcheck by enabling --http-endpoint (https://github.com/kubernetes-csi/node-driver-registrar?tab=readme-ov-file#health-check-with-the-http-server) & calling it with a livenessProbe.

Which issue(s) this PR fixes:

Fixes #1025

See #1025 (comment) for example of how it has resolved the issue.

Special notes for your reviewer:
This just changes the latest helm chart to use a feature added in node-driver-registrar, by default it will be disabled so won't have any changes for those using latest. Will need a new release (likely 4.13.0 as it changes the api)

Does this PR introduce a user-facing change?:

Adds nodeDriverRegistrar healthcheck, default disabled

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. labels Jan 28, 2026
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jan 28, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ajhetherington / name: Alex Hetherington (419f3a0, 0d5663f)

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Welcome @ajhetherington!

It looks like this is your first PR to kubernetes-csi/csi-driver-nfs 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-csi/csi-driver-nfs has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot requested a review from gnufied January 28, 2026 15:42
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 28, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @ajhetherington. Thanks for your PR.

I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 28, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Jan 29, 2026

Pull Request Test Coverage Report for Build 21511840528

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 78.582%

Totals Coverage Status
Change from base Build 21477725531: 0.0%
Covered Lines: 1108
Relevant Lines: 1410

💛 - Coveralls

Copy link
Copy Markdown
Member

@andyzhangx andyzhangx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you set --nodeDriverRegistrar.livenessProbe.enabled=true here? so e2e test would run with livenessProbe enabled:

E2E_HELM_OPTIONS ?= --set image.nfs.repository=$(REGISTRY)/$(IMAGENAME) --set image.nfs.tag=$(IMAGE_VERSION) --set image.nfs.pullPolicy=Always --set feature.enableInlineVolume=true --set externalSnapshotter.enabled=true --set controller.runOnControlPlane=true

@andyzhangx
Copy link
Copy Markdown
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 30, 2026
@andyzhangx andyzhangx changed the title Add optional healthcheck for node-driver-registrar feat: add optional healthcheck for node-driver-registrar Jan 31, 2026
Copy link
Copy Markdown
Member

@andyzhangx andyzhangx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 31, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ajhetherington, andyzhangx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 31, 2026
@k8s-ci-robot k8s-ci-robot merged commit 72373ad into kubernetes-csi:master Jan 31, 2026
18 checks passed
andyzhangx added a commit to andyzhangx/csi-driver-smb that referenced this pull request Apr 7, 2026
Add optional liveness probe support for node-driver-registrar container
in the node DaemonSet. When enabled, node-driver-registrar exposes an
HTTP health endpoint that Kubernetes can use to detect and restart
unhealthy registrar processes.

New Helm values:
- nodeDriverRegistrar.healthPort (default: 19809)
- nodeDriverRegistrar.livenessProbe.enabled (default: false)
- nodeDriverRegistrar.livenessProbe.initialDelaySeconds (default: 20)
- nodeDriverRegistrar.livenessProbe.timeoutSeconds (default: 10)
- nodeDriverRegistrar.livenessProbe.periodSeconds (default: 5)
- nodeDriverRegistrar.livenessProbe.failureThreshold (default: 2)

Ref: kubernetes-csi/csi-driver-nfs#1026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

driver name nfs.csi.k8s.io not found in the list of registered CSI drivers

4 participants