diff --git a/internal/controller/dragonfly_instance.go b/internal/controller/dragonfly_instance.go index 2142425..bcefe6a 100644 --- a/internal/controller/dragonfly_instance.go +++ b/internal/controller/dragonfly_instance.go @@ -303,7 +303,7 @@ func (dfi *DragonflyInstance) checkAndConfigureReplication(ctx context.Context) return err } - // Configure to the right master if not correct + // configuring to the right master if !ok { dfi.log.Info("configuring pod as replica to the right master", "pod", pod.Name) if err := dfi.configureReplica(ctx, &pod); err != nil { @@ -365,7 +365,7 @@ func (dfi *DragonflyInstance) replicaOf(ctx context.Context, pod *corev1.Pod, ma } if err := dfi.client.Update(ctx, pod); err != nil { - return fmt.Errorf("could not update replica annotation: %w", err) + return fmt.Errorf("could not update replica metadatas: %w", err) } return nil