diff --git a/src/go/k8s/controllers/redpanda/redpanda_decommission_controller.go b/src/go/k8s/controllers/redpanda/redpanda_decommission_controller.go index e45fee21c3d78..2356a478da384 100644 --- a/src/go/k8s/controllers/redpanda/redpanda_decommission_controller.go +++ b/src/go/k8s/controllers/redpanda/redpanda_decommission_controller.go @@ -43,7 +43,6 @@ const ( type DecommissionReconciler struct { client.Client - // Namespace is where the pvc's are we are watching for OperatorMode bool } diff --git a/src/go/k8s/controllers/redpanda/redpanda_node_pvc_controller.go b/src/go/k8s/controllers/redpanda/redpanda_node_pvc_controller.go index f366300a301cf..6cda46b4acd9f 100644 --- a/src/go/k8s/controllers/redpanda/redpanda_node_pvc_controller.go +++ b/src/go/k8s/controllers/redpanda/redpanda_node_pvc_controller.go @@ -32,7 +32,6 @@ import ( // RedpandaNodePVCReconciler watches node objects, and sets annotation to PVC to mark them for deletion type RedpandaNodePVCReconciler struct { client.Client - // Namespace is where the pvc's are we are watching for OperatorMode bool } diff --git a/src/go/k8s/controllers/test/suite_test.go b/src/go/k8s/controllers/test/suite_test.go index fe9b17e0ea37f..49633f377c745 100644 --- a/src/go/k8s/controllers/test/suite_test.go +++ b/src/go/k8s/controllers/test/suite_test.go @@ -253,7 +253,7 @@ var _ = BeforeSuite(func(suiteCtx SpecContext) { RequeueHelmDeps: 10 * time.Second, }).SetupWithManager(k8sManager) Expect(err).ToNot(HaveOccurred()) - + err = (&redpanda.DecommissionReconciler{ Client: k8sManager.GetClient(), OperatorMode: false,