From 7b88115d97a5bbaaeb0095013afbb8247f0d5ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 13 Dec 2021 14:08:57 +0100 Subject: [PATCH] mgr: add missing context to the active-watch sidecar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The context was not initialized and thus the configmap fetch will fail with a nil pointer. Signed-off-by: Sébastien Han (cherry picked from commit 892c9a211c79400bb3df3d91759d340c25d69c97) --- cmd/rook/ceph/mgr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/rook/ceph/mgr.go b/cmd/rook/ceph/mgr.go index 9ab42fed6..9c0ec816d 100644 --- a/cmd/rook/ceph/mgr.go +++ b/cmd/rook/ceph/mgr.go @@ -66,6 +66,7 @@ func init() { // Start the mgr daemon sidecar func runMgrSidecar(cmd *cobra.Command, args []string) error { rook.SetLogLevel() + clusterInfo.Context = cmd.Context() context := createContext() clusterInfo.Monitors = mon.ParseMonEndpoints(cfg.monEndpoints)