From c54a5556f31cbdd6b11d0ff6916d17bcde630db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 21 Oct 2021 16:42:02 +0200 Subject: [PATCH] rgw: stop using context.TODO() and use parent ctx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The clusterInfo has the parent Context so let's use it. Signed-off-by: Sébastien Han --- pkg/operator/ceph/object/rgw.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/operator/ceph/object/rgw.go b/pkg/operator/ceph/object/rgw.go index 7e89c290f7d9..495b51f6f02d 100644 --- a/pkg/operator/ceph/object/rgw.go +++ b/pkg/operator/ceph/object/rgw.go @@ -18,7 +18,6 @@ limitations under the License. package object import ( - "context" "fmt" "io/ioutil" "net/http" @@ -322,7 +321,7 @@ func BuildDNSEndpoint(domainName string, port int32, secure bool) string { // GetTLSCACert fetch cacert for internal RGW requests func GetTlsCaCert(objContext *Context, objectStoreSpec *cephv1.ObjectStoreSpec) ([]byte, error) { - ctx := context.TODO() + ctx := objContext.clusterInfo.Context var ( tlsCert []byte err error