From 83ba46370d0b53823b5cf659f0f58808b243eae7 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Fri, 29 Nov 2024 11:12:05 +0800 Subject: [PATCH] fix: restore ops is always creating --- pkg/operations/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operations/restore.go b/pkg/operations/restore.go index 4efeba60e17..7411e7ee03f 100644 --- a/pkg/operations/restore.go +++ b/pkg/operations/restore.go @@ -91,7 +91,7 @@ func (r RestoreOpsHandler) Action(reqCtx intctrlutil.RequestCtx, cli client.Clie } opsRequest.Labels[constant.AppInstanceLabelKey] = opsRequest.Spec.GetClusterName() opsRequest.Labels[constant.OpsRequestTypeLabelKey] = string(opsRequest.Spec.Type) - scheme, _ := opsv1alpha1.SchemeBuilder.Build() + scheme, _ := appsv1.SchemeBuilder.Build() if err = controllerutil.SetOwnerReference(cluster, opsRequest, scheme); err != nil { return err }