@@ -251,7 +260,13 @@ func (w *Watcher) handleRestorePodEvent(ctx context.Context, pod *corev1.Pod) {
...
@@ -251,7 +260,13 @@ func (w *Watcher) handleRestorePodEvent(ctx context.Context, pod *corev1.Pod) {
w.log.Info("Restore pod running, triggering external restore","pod",podKey,"checkpoint_hash",checkpointHash)
w.log.Info("Restore pod running, triggering external restore","pod",podKey,"checkpoint_hash",checkpointHash)
emitPodEvent(ctx,w.clientset,w.log,pod,"snapshot",corev1.EventTypeNormal,"RestoreRequested",fmt.Sprintf("Restore requested from checkpoint %s",checkpointHash))
emitPodEvent(ctx,w.clientset,w.log,pod,"snapshot",corev1.EventTypeNormal,"RestoreRequested",fmt.Sprintf("Restore requested from checkpoint %s",checkpointHash))
emitPodEvent(ctx,w.clientset,log,pod,"snapshot",corev1.EventTypeNormal,"RestoreSucceeded",fmt.Sprintf("Restore completed from checkpoint %s",checkpointHash))
emitPodEvent(ctx,w.clientset,log,pod,"snapshot",corev1.EventTypeNormal,"RestoreSucceeded",fmt.Sprintf("Restore completed from checkpoint %s",checkpointHash))