Fix some typo in kubelet component source code

This commit is contained in:
Qian Xiao
2023-08-03 23:56:50 -07:00
parent 2c6c4566ef
commit 0944c00778
7 changed files with 9 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ import (
// errors are simply logged and the goroutine is terminated without updating
// actualStateOfWorld.
type OperationExecutor interface {
// RegisterPlugin registers the given plugin using the a handler in the plugin handler map.
// RegisterPlugin registers the given plugin using a handler in the plugin handler map.
// It then updates the actual state of the world to reflect that.
RegisterPlugin(socketPath string, timestamp time.Time, pluginHandlers map[string]cache.PluginHandler, actualStateOfWorld ActualStateOfWorldUpdater) error

View File

@@ -184,7 +184,7 @@ func TestPluginReRegistration(t *testing.T) {
// The updated plugin should be in the desired state of world cache
for i := 0; i < 10; i++ {
// Stop the plugin; the plugin should be removed from the desired state of world cache
// The plugin removel doesn't work when running the unit tests locally: event.Op of plugin watcher won't pick up the delete event
// The plugin removal doesn't work when running the unit tests locally: event.Op of plugin watcher won't pick up the delete event
require.NoError(t, p.Stop())
waitForUnregistration(t, pluginInfo.SocketPath, dsw)