diff --git a/internal/controller/vrg_volrep.go b/internal/controller/vrg_volrep.go index 85a9d76d6..32534b890 100644 --- a/internal/controller/vrg_volrep.go +++ b/internal/controller/vrg_volrep.go @@ -1327,7 +1327,7 @@ func (v *VRGInstance) selectVolumeReplicationClass( } // if peerClasses does not exist, replicationClasses would not have SID in - // older ramen versions, this check is neeed because we need to handle upgrade + // older ramen versions, this check is needed because we need to handle upgrade // scenario where SID is not present in replicatioClass. // if peerClass exist, continue to check if SID matches, or skip the check and proceed @@ -1553,7 +1553,7 @@ func (v *VRGInstance) validateVRValidatedStatus( // validateVRCompletedStatus validates if the VolumeReplication resource Completed condition is met and update // the PVC DataReady and Protected conditions. -// Returns true if the condtion is true, false if the condition is missing, stale, ubnknown, of false. +// Returns true if the condition is true, false if the condition is missing, stale, ubnknown, of false. func (v *VRGInstance) validateVRCompletedStatus(pvc *corev1.PersistentVolumeClaim, volRep *volrep.VolumeReplication, state ramendrv1alpha1.ReplicationState, ) bool { @@ -2405,7 +2405,7 @@ func (v *VRGInstance) processPVSecrets(pv *corev1.PersistentVolume) error { pv.Spec.CSI.ControllerExpandSecretRef = secFromSC } - // the value for provisionerSecretName and provisionerDeletionSecretName are allways same. so we check + // the value for provisionerSecretName and provisionerDeletionSecretName are always same. so we check // if provisionerSecretName name exists in storageClass and if exists we populate PV Annotation with // provisionerDeletionSecretName with the values from provisionerSecretName and its namespace values. secFromSC, exists = secretsFromSC(sc.Parameters, provisionerSecretName, provisionerSecretNamespace) diff --git a/internal/controller/vrg_volrep_test.go b/internal/controller/vrg_volrep_test.go index fbb2df47d..dd358fe44 100644 --- a/internal/controller/vrg_volrep_test.go +++ b/internal/controller/vrg_volrep_test.go @@ -616,7 +616,7 @@ var _ = Describe("VolumeReplicationGroupVolRepController", func() { // Test VRG finalizer removal during deletion is deferred till VR is deleted var vrgVRDeleteEnsureTestCase *vrgTest - Context("in primary state where VRG finalizer removal is deferred duing deletion", func() { + Context("in primary state where VRG finalizer removal is deferred during deletion", func() { storageIDLabel := genStorageIDLabel(storageIDs[0]) storageID := storageIDLabel[vrgController.StorageIDLabel] vrcLabels := genVRCLabels(replicationIDs[0], storageID, "ramen") @@ -1433,7 +1433,7 @@ var _ = Describe("VolumeReplicationGroupVolRepController", func() { vrcProvisioner: "manual.storage.com", scProvisioner: "manual.storage.com", } - Context("Basic test with no peerClassses", func() { + Context("Basic test with no peerClasses", func() { It("sets up PVCs, PVs and VRGs", func() { vrgNoPeerClassesTemplate.s3Profiles = []string{s3Profiles[vrgS3ProfileNumber].S3ProfileName} storageIDLabel := genStorageIDLabel(storageIDs[0]) @@ -1470,7 +1470,7 @@ var _ = Describe("VolumeReplicationGroupVolRepController", func() { vrcProvisioner: "manual.storage.com", scProvisioner: "manual.storage.com", } - Context("Basic test with no peerClassses with replicationID in vrc", func() { + Context("Basic test with no peerClasses with replicationID in vrc", func() { It("sets up PVCs, PVs and VRGs", func() { vrgNoPeerClassesAndReplicationIDTemplate.s3Profiles = []string{s3Profiles[vrgS3ProfileNumber].S3ProfileName} storageIDLabel := genStorageIDLabel(storageIDs[0])