diff --git a/controllers/deploymentcopy_controller.go b/controllers/deploymentcopy_controller.go index 3a2bd61..50cd65a 100644 --- a/controllers/deploymentcopy_controller.go +++ b/controllers/deploymentcopy_controller.go @@ -155,5 +155,6 @@ func (r *DeploymentCopyReconciler) getDeployment(name, namespace string) (*appsv func (r *DeploymentCopyReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&duplicationv1beta1.DeploymentCopy{}). + Owns(&appsv1.Deployment{}). Complete(r) }