diff --git a/controllers/lvmcluster_controller.go b/controllers/lvmcluster_controller.go index e1d7e83c0..2f1f87f9f 100644 --- a/controllers/lvmcluster_controller.go +++ b/controllers/lvmcluster_controller.go @@ -122,14 +122,14 @@ type resourceManager interface { getName() string // ensureCreated should check the resources managed by this unit - ensureCreated(*LVMClusterReconciler, lvmv1alpha1.LVMCluster) error + ensureCreated(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error // ensureDeleted should wait for the resources to be cleaned up - ensureDeleted(*LVMClusterReconciler, lvmv1alpha1.LVMCluster) error + ensureDeleted(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error // updateStatus should optionally update the CR's status about the health of the managed resource // each unit will have updateStatus called induvidually so // avoid status fields like lastHeartbeatTime and have a // status that changes only when the operands change. - updateStatus(*LVMClusterReconciler, lvmv1alpha1.LVMCluster) error + updateStatus(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error } diff --git a/doc/design/README.md b/doc/design/README.md index f5be771f8..755907b6f 100644 --- a/doc/design/README.md +++ b/doc/design/README.md @@ -27,15 +27,15 @@ type resourceManager interface { getName() string // ensureCreated should check the resources managed by this unit - ensureCreated(*LVMClusterReconciler, lvmv1alpha1.LVMCluster) error + ensureCreated(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error // ensureDeleted should wait for the resources to be cleaned up - ensureDeleted(*LVMClusterReconciler, lvmv1alpha1.LVMCluster) error + ensureDeleted(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error // updateStatus should optionally update the CR's status about the health of the managed resource // each unit will have updateStatus called induvidually so // avoid status fields like lastHeartbeatTime and have a // status that changes only when the operands change. - updateStatus(*LVMClusterReconciler, lvmv1alpha1.LVMCluster) error + updateStatus(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error } ``` \ No newline at end of file