diff --git a/pkg/operator/ceph/object/controller.go b/pkg/operator/ceph/object/controller.go index 08bb3a858..bfffa49ba 100644 --- a/pkg/operator/ceph/object/controller.go +++ b/pkg/operator/ceph/object/controller.go @@ -511,7 +511,7 @@ func (r *ReconcileCephObjectStore) startMonitoring(objectstore *cephv1.CephObjec return } - rgwChecker := newBucketChecker(r.context, objContext, serviceIP, port, r.client, namespacedName, &objectstore.Spec.HealthCheck, r.clusterSpec.External.Enable) + rgwChecker := newBucketChecker(r.context, objContext, serviceIP, port, r.client, namespacedName, &objectstore.Spec.HealthCheck) logger.Info("starting rgw healthcheck") go rgwChecker.checkObjectStore(r.objectStoreChannels[objectstore.Name].stopChan) } diff --git a/pkg/operator/ceph/object/health.go b/pkg/operator/ceph/object/health.go index f1ead4032..ab2eaf12b 100644 --- a/pkg/operator/ceph/object/health.go +++ b/pkg/operator/ceph/object/health.go @@ -47,11 +47,10 @@ type bucketChecker struct { client client.Client namespacedName types.NamespacedName healthCheckSpec *cephv1.BucketHealthCheckSpec - isExternal bool } // newbucketChecker creates a new HealthChecker object -func newBucketChecker(context *clusterd.Context, objContext *Context, serviceIP, port string, client client.Client, namespacedName types.NamespacedName, healthCheckSpec *cephv1.BucketHealthCheckSpec, isExternal bool) *bucketChecker { +func newBucketChecker(context *clusterd.Context, objContext *Context, serviceIP, port string, client client.Client, namespacedName types.NamespacedName, healthCheckSpec *cephv1.BucketHealthCheckSpec) *bucketChecker { c := &bucketChecker{ context: context, objContext: objContext, @@ -61,7 +60,6 @@ func newBucketChecker(context *clusterd.Context, objContext *Context, serviceIP, namespacedName: namespacedName, client: client, healthCheckSpec: healthCheckSpec, - isExternal: isExternal, } // allow overriding the check interval