mgr: add missing context to the active-watch sidecar

The context was not initialized and thus the configmap fetch will fail
with a nil pointer.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 892c9a211c)
This commit is contained in:
Sébastien Han authored and mergify-bot committed 2021-12-15 19:21:03 +00:00
1 parent 108f566eb9
commit 7b88115d97
1 file changed
+1
+1
View File
@@ -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)