Skip to content

Commit a1e7eca

Browse files
committed
fix the typo
Signed-off-by: Zhiying Lin <[email protected]>
1 parent 2aa77bb commit a1e7eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controllers/clusterresourceplacement/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ func (r *Reconciler) getOrCreateClusterResourceSnapshot(ctx context.Context, crp
593593
func (r *Reconciler) shouldCreateNewResourceSnapshotNow(ctx context.Context, latestResourceSnapshot *fleetv1beta1.ClusterResourceSnapshot) (ctrl.Result, error) {
594594
// We reserve half of the resourceSnapshotCreationInterval to allow the controller to bundle all the resource changes into one snapshot.
595595
// For example, if the interval is 1m, the first resource change will be captured starting from 30s.
596-
// And then the next 30s will be used to caputre all the resource changes into one snapshot.
596+
// And then the next 30s will be used to capture all the resource changes into one snapshot.
597597
snapshotKObj := klog.KObj(latestResourceSnapshot)
598598
now := time.Now()
599599
half := r.ResourceSnapshotCreationInterval / 2
@@ -609,7 +609,7 @@ func (r *Reconciler) shouldCreateNewResourceSnapshotNow(ctx context.Context, lat
609609
if err != nil {
610610
klog.ErrorS(controller.NewUnexpectedBehaviorError(err), "Failed to get the NextResourceSnapshotCandidateDetectionTimeAnnotation", "clusterResourceSnapshot", snapshotKObj)
611611
}
612-
// If the annoation is not set, set next resource snapshot candidate detection time is now.
612+
// If the annotation is not set, set next resource snapshot candidate detection time is now.
613613
if latestResourceSnapshot.Annotations == nil {
614614
latestResourceSnapshot.Annotations = make(map[string]string)
615615
}

0 commit comments

Comments
 (0)