Skip to content

Commit

Permalink
fix: restore ops is always creating
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed Nov 29, 2024
1 parent 19fb384 commit 83ba463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operations/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 83ba463

Please sign in to comment.