Skip to content

feat: add --timeout flag for node-driver-registrar#1105

Merged
andyzhangx merged 1 commit intokubernetes-csi:masterfrom
andyzhangx:add-registrar-timeout
Apr 18, 2026
Merged

feat: add --timeout flag for node-driver-registrar#1105
andyzhangx merged 1 commit intokubernetes-csi:masterfrom
andyzhangx:add-registrar-timeout

Conversation

@andyzhangx
Copy link
Copy Markdown
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add a configurable --timeout flag for node-driver-registrar in the Helm chart (nodeDriverRegistrar.timeout) and deploy manifests. Default is increased from 10s to 60s.

During node DaemonSet startup, node-driver-registrar can start before nfsplugin has created the CSI socket (/csi/csi.sock). With the default 10s timeout, the registrar exits with context deadline exceeded and restarts unnecessarily. Increasing the timeout to 60s gives the nfs plugin sufficient time to initialize, avoiding the crash-restart cycle.

Which issue(s) this PR fixes:

Fixes #1065

Special notes for your reviewer:

Changes:

  • charts/latest/csi-driver-nfs/values.yaml: Added nodeDriverRegistrar.timeout: 60
  • charts/latest/csi-driver-nfs/templates/csi-nfs-node.yaml: Added --timeout={{ .Values.nodeDriverRegistrar.timeout }}s arg
  • deploy/v4.13.2/csi-nfs-node.yaml: Added --timeout=60s arg
  • Updated chart tgz

Does this PR introduce a user-facing change?

Add configurable --timeout flag (default 60s) for node-driver-registrar to prevent unnecessary restarts during CSI driver socket initialization.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. kind/feature Categorizes issue or PR as related to a new feature. labels Apr 18, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 18, 2026
@andyzhangx andyzhangx force-pushed the add-registrar-timeout branch from d9e65c6 to e4e8b9d Compare April 18, 2026 02:31
Add configurable timeout for node driver registrar gRPC connection
to the CSI driver socket. Default increased from 10s to 60s to
prevent unnecessary container restarts when nfsplugin takes longer
to initialize and create the CSI socket.

Ref 1065
@andyzhangx andyzhangx force-pushed the add-registrar-timeout branch from e4e8b9d to 21de9bc Compare April 18, 2026 02:36
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Apr 18, 2026
@k8s-triage-robot
Copy link
Copy Markdown

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 18, 2026
@andyzhangx andyzhangx merged commit 71761d8 into kubernetes-csi:master Apr 18, 2026
16 of 17 checks passed
andyzhangx added a commit to andyzhangx/csi-driver-nfs that referenced this pull request Apr 18, 2026
…timeout

feat: add --timeout flag for node-driver-registrar
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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

node-driver-registrar can race with nfsplugin startup and restart unnecessarily

3 participants