Skip to content

Commit

Permalink
Remove cleanup of deployables (#88)
Browse files Browse the repository at this point in the history
* Remove cleanup of deployables

Signed-off-by: Philip Wu <phwu@redhat.com>

* Fix placement test

Signed-off-by: Philip Wu <phwu@redhat.com>
  • Loading branch information
philipwu08 authored Feb 17, 2022
1 parent bbcc640 commit 1d49987
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions pkg/controller/mcmhub/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,6 @@ func (r *ReconcileSubscription) doMCMHubReconcile(sub *appv1alpha1.Subscription)
}

err = r.PropagateAppSubManifestWork(sub, clusters)
if err == nil {
// Cleanup deployables that were created pre-ACM 2.5
if err := r.cleanupDeployables(sub); err != nil {
// Log error only
klog.Warning(err, "Error cleaning up deployables")
}
}

return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ func TestClusterChange(t *testing.T) {

g.Eventually(requests, timeout).Should(gomega.Receive(gomega.Equal(expectedRequest)))

time.Sleep(8 * time.Second)
time.Sleep(10 * time.Second)

err = c.Get(context.TODO(), prulekey, result)
g.Expect(err).NotTo(gomega.HaveOccurred())
Expand Down

0 comments on commit 1d49987

Please sign in to comment.