Skip to content

Commit

Permalink
Merge pull request #428 from jsafrane/automated-cherry-pick-of-#426-u…
Browse files Browse the repository at this point in the history
…pstream-release-2.11

Automated cherry pick of #426: Fix registrar timeout
  • Loading branch information
k8s-ci-robot authored Jul 12, 2024
2 parents c1cb253 + 85cd07d commit 043c112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/csi-node-driver-registrar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ func main() {
}

logger.V(1).Info("Calling CSI driver to discover driver name")
ctx, cancel := context.WithTimeout(ctx, *operationTimeout)
getNameCtx, cancel := context.WithTimeout(ctx, *operationTimeout)
defer cancel()

csiDriverName, err := csirpc.GetDriverName(ctx, csiConn)
csiDriverName, err := csirpc.GetDriverName(getNameCtx, csiConn)
if err != nil {
logger.Error(err, "Error retreiving CSI driver name")
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
Expand Down

0 comments on commit 043c112

Please sign in to comment.