Skip to content

Commit

Permalink
Reinstate cleanup, remove debug printlns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Oct 19, 2023
1 parent a05fed1 commit 785fc1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion controllers/reaper/reaper_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ func (r *ReaperReconciler) reconcileDeployment(
deploymentKey := types.NamespacedName{Namespace: actualReaper.Namespace, Name: actualReaper.Name}
logger = logger.WithValues("Deployment", deploymentKey)
logger.Info(fmt.Sprintf("Reconciling reaper deployment, req was %#v", actualReaper))
println("reaper http management proxy was: ", actualReaper.Spec.HttpManagement.Enabled)

authVars, err := r.collectAuthVars(ctx, actualReaper, logger)
if err != nil {
Expand Down
2 changes: 0 additions & 2 deletions pkg/reaper/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ func NewDeployment(reaper *api.Reaper, dc *cassdcapi.CassandraDatacenter, keysto
Value: fmt.Sprintf("%d", reaper.Spec.HeapSize.Value()),
})
}
println("Reconciling new Reaper deployment: ", reaper)
if reaper.Spec.HttpManagement.Enabled {
println("Reconciling new Reaper deployment,HttpManagement.Enabled ")
envVars = append(envVars, corev1.EnvVar{
Name: "REAPER_HTTP_MANAGEMENT_ENABLE",
Value: "true",
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ func TestOperator(t *testing.T) {
t.Run("CreateSingleReaper", e2eTest(ctx, &e2eTestOpts{
testFunc: createSingleReaper,
fixture: framework.NewTestFixture("single-dc-reaper", controlPlane),
skipK8ssandraClusterCleanup: true, // TODO: reinstate cleanup
doCassandraDatacenterCleanup: false, // TODO: reinstate cleanup
skipK8ssandraClusterCleanup: false,
doCassandraDatacenterCleanup: true,
}))
t.Run("CreateMultiReaper", e2eTest(ctx, &e2eTestOpts{
testFunc: createMultiReaper,
Expand Down

0 comments on commit 785fc1b

Please sign in to comment.