Skip to content

Commit

Permalink
Merge pull request #166 from astraw99/fix-typo
Browse files Browse the repository at this point in the history
Fix some comment typo
  • Loading branch information
k8s-ci-robot authored Oct 20, 2021
2 parents f25f344 + 67822f1 commit 1d10c53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 @@ -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"
)

Expand Down Expand Up @@ -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 &registrationServer{
driverName: driverName,
Expand Down
4 changes: 2 additions & 2 deletions cmd/csi-node-driver-registrar/node_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)

Expand Down

0 comments on commit 1d10c53

Please sign in to comment.