From 67822f1443221dea50b36d0be7fb8b86b7fab555 Mon Sep 17 00:00:00 2001 From: astraw99 Date: Tue, 5 Oct 2021 11:51:50 +0800 Subject: [PATCH] fix some typo --- cmd/csi-node-driver-registrar/main.go | 4 ++-- cmd/csi-node-driver-registrar/node_register.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/csi-node-driver-registrar/main.go b/cmd/csi-node-driver-registrar/main.go index b55f21110..ed8c95ef8 100644 --- a/cmd/csi-node-driver-registrar/main.go +++ b/cmd/csi-node-driver-registrar/main.go @@ -48,7 +48,7 @@ const ( ModeRegistration = "registration" // ModeKubeletRegistrationProbe makes node-driver-registrar act as an exec probe - // that checks if the kubelet plugin registration succeded. + // that checks if the kubelet plugin registration succeeded. ModeKubeletRegistrationProbe = "kubelet-registration-probe" ) @@ -86,7 +86,7 @@ type registrationServer struct { var _ registerapi.RegistrationServer = registrationServer{} -// NewregistrationServer returns an initialized registrationServer instance +// newRegistrationServer returns an initialized registrationServer instance func newRegistrationServer(driverName string, endpoint string, versions []string) registerapi.RegistrationServer { return ®istrationServer{ driverName: driverName, diff --git a/cmd/csi-node-driver-registrar/node_register.go b/cmd/csi-node-driver-registrar/node_register.go index ce2581321..e033d2d7c 100644 --- a/cmd/csi-node-driver-registrar/node_register.go +++ b/cmd/csi-node-driver-registrar/node_register.go @@ -35,7 +35,7 @@ import ( func nodeRegister(csiDriverName, httpEndpoint string) { // When kubeletRegistrationPath is specified then driver-registrar ONLY acts // as gRPC server which replies to registration requests initiated by kubelet's - // pluginswatcher infrastructure. Node labeling is done by kubelet's csi code. + // plugins watcher infrastructure. Node labeling is done by kubelet's csi code. registrar := newRegistrationServer(csiDriverName, *kubeletRegistrationPath, supportedVersions) socketPath := buildSocketPath(csiDriverName) if err := util.CleanupSocketFile(socketPath); err != nil { @@ -61,7 +61,7 @@ func nodeRegister(csiDriverName, httpEndpoint string) { klog.Infof("Registration Server started at: %s\n", socketPath) grpcServer := grpc.NewServer() - // Before registing node-driver-registrar with the kubelet ensure that the lockfile doesn't exist + // Before registering node-driver-registrar with the kubelet ensure that the lockfile doesn't exist // a lockfile may exist because the container was forcefully shutdown util.CleanupFile(registrationProbePath)