diff --git a/controllers/projectkey_controller.go b/controllers/projectkey_controller.go index 2a7992a..cd8bfb9 100644 --- a/controllers/projectkey_controller.go +++ b/controllers/projectkey_controller.go @@ -197,7 +197,9 @@ func (r *ProjectKeyReconciler) getExistingState(projectkey sentryv1alpha1.Projec projectSlug = sProject.Slug break } + } + if projectSlug == "" { return nil, "", ErrOutOfSync }