diff --git a/README.md b/README.md index 1e6892b9..9b4d98ba 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The move of the Kubernetes Volume Snapshot feature to beta also means: * A revamp of volume snapshot APIs. * The CSI external-snapshotter sidecar is split into two controllers, a snapshot controller and a CSI external-snapshotter sidecar. -The snapshot controller is deployed by the Kubernetes distributions and is responsible for watching the VolumeSnapshot CRD objects and manges the creation and deletion lifecycle of snapshots. +The snapshot controller is deployed by the Kubernetes distributions and is responsible for watching the VolumeSnapshot CRD objects and manages the creation and deletion lifecycle of snapshots. The CSI external-snapshotter sidecar watches Kubernetes VolumeSnapshotContent CRD objects and triggers CreateSnapshot/DeleteSnapshot against a CSI endpoint. diff --git a/cmd/csi-snapshotter/main.go b/cmd/csi-snapshotter/main.go index 74b6ffc9..23341843 100644 --- a/cmd/csi-snapshotter/main.go +++ b/cmd/csi-snapshotter/main.go @@ -108,7 +108,7 @@ func main() { factory := informers.NewSharedInformerFactory(snapClient, *resyncPeriod) coreFactory := coreinformers.NewSharedInformerFactory(kubeClient, *resyncPeriod) - // Add Snapshot types to the defualt Kubernetes so events can be logged for them + // Add Snapshot types to the default Kubernetes so events can be logged for them snapshotscheme.AddToScheme(scheme.Scheme) // Connect to CSI. diff --git a/cmd/snapshot-controller/main.go b/cmd/snapshot-controller/main.go index a8a87de3..3d99892c 100644 --- a/cmd/snapshot-controller/main.go +++ b/cmd/snapshot-controller/main.go @@ -87,7 +87,7 @@ func main() { factory := informers.NewSharedInformerFactory(snapClient, *resyncPeriod) coreFactory := coreinformers.NewSharedInformerFactory(kubeClient, *resyncPeriod) - // Add Snapshot types to the defualt Kubernetes so events can be logged for them + // Add Snapshot types to the default Kubernetes so events can be logged for them snapshotscheme.AddToScheme(scheme.Scheme) klog.V(2).Infof("Start NewCSISnapshotController with kubeconfig [%s] resyncPeriod [%+v]", *kubeconfig, *resyncPeriod) diff --git a/pkg/common-controller/snapshotclass_test.go b/pkg/common-controller/snapshotclass_test.go index ec3e3353..be3ff812 100644 --- a/pkg/common-controller/snapshotclass_test.go +++ b/pkg/common-controller/snapshotclass_test.go @@ -33,7 +33,7 @@ import ( func TestUpdateSnapshotClass(t *testing.T) { tests := []controllerTest{ { - // defualt snapshot class name should be set + // default snapshot class name should be set name: "1-1 - default snapshot class name should be set", initialContents: nocontents, initialSnapshots: newSnapshotArray("snap1-1", "snapuid1-1", "claim1-1", "", "", "", &True, nil, nil, nil, false, true, nil),