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:
1 parent
108f566eb9
commit
7b88115d97
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user