From fcd0f4713a930d5bb1b6aa64578f91c7bf1fb175 Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Thu, 14 Apr 2022 17:29:47 +0530 Subject: [PATCH] cleanup: correct typos in test description and source code this commit correct typos in various places. Signed-off-by: Humble Chirammal --- e2e/cephfs.go | 2 +- e2e/pvc.go | 2 +- internal/rbd/mirror.go | 2 +- internal/rbd/rbd_journal.go | 2 +- internal/rbd/rbd_util.go | 2 +- internal/rbd/replicationcontrollerserver.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/cephfs.go b/e2e/cephfs.go index 4b42b75a1..e7dc5a739 100644 --- a/e2e/cephfs.go +++ b/e2e/cephfs.go @@ -296,7 +296,7 @@ var _ = Describe("cephfs", func() { } }) - By("checking nodeplugin deamonset pods are running", func() { + By("checking nodeplugin daemonset pods are running", func() { err := waitForDaemonSets(cephFSDeamonSetName, cephCSINamespace, f.ClientSet, deployTimeout) if err != nil { e2elog.Failf("timeout waiting for daemonset %s: %v", cephFSDeamonSetName, err) diff --git a/e2e/pvc.go b/e2e/pvc.go index a46765d5d..2f7575d29 100644 --- a/e2e/pvc.go +++ b/e2e/pvc.go @@ -339,7 +339,7 @@ func getMetricsForPVC(f *framework.Framework, pvc *v1.PersistentVolumeClaim, t i return false, nil } if stdOut == "" { - e2elog.Logf("no metrics received from kublet on IP %s", kubelet) + e2elog.Logf("no metrics received from kubelet on IP %s", kubelet) return false, nil } diff --git a/internal/rbd/mirror.go b/internal/rbd/mirror.go index 08a5e52b8..239c81667 100644 --- a/internal/rbd/mirror.go +++ b/internal/rbd/mirror.go @@ -148,7 +148,7 @@ func (ri *rbdImage) resyncImage() error { return nil } -// getImageMirroingStatus get the mirroring status of an image. +// getImageMirroringStatus get the mirroring status of an image. func (ri *rbdImage) getImageMirroringStatus() (*librbd.GlobalMirrorImageStatus, error) { image, err := ri.open() if err != nil { diff --git a/internal/rbd/rbd_journal.go b/internal/rbd/rbd_journal.go index a8907ac7e..dba2ddab7 100644 --- a/internal/rbd/rbd_journal.go +++ b/internal/rbd/rbd_journal.go @@ -524,7 +524,7 @@ func undoVolReservation(ctx context.Context, rbdVol *rbdVolume, cr *util.Credent // complete omap mapping between imageName and volumeID. // RegenerateJournal performs below operations -// Extract clusterID, Mons after checkig clusterID mapping +// Extract clusterID, Mons after checking clusterID mapping // Extract parameters journalPool, pool from volumeAttributes // Extract optional parameters volumeNamePrefix, kmsID, owner from volumeAttributes // Extract information from volumeID diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 7f00cfe18..a7c5804e3 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -942,7 +942,7 @@ func genSnapFromSnapID( return err } -// updateSnapshotDetails will copies the details from the rbdVolume to the +// updateSnapshotDetails will copy the details from the rbdVolume to the // rbdSnapshot. example copying size from rbdVolume to rbdSnapshot. func updateSnapshotDetails(rbdSnap *rbdSnapshot) error { vol := generateVolFromSnap(rbdSnap) diff --git a/internal/rbd/replicationcontrollerserver.go b/internal/rbd/replicationcontrollerserver.go index edeb0c0d3..51068daed 100644 --- a/internal/rbd/replicationcontrollerserver.go +++ b/internal/rbd/replicationcontrollerserver.go @@ -464,7 +464,7 @@ func disableVolumeReplication(rbdVol *rbdVolume, // Local image is in up+replaying state // If the image is in a secondary and its state is up+replaying means - // its an healthy secondary and the image is primary somewhere in the + // its a healthy secondary and the image is primary somewhere in the // remote cluster and the local image is getting replayed. Return // success for the Disabling mirroring as we cannot disable mirroring // on the secondary image, when the image on the primary site gets