Skip to content

Commit

Permalink
mgr: add missing context to the active-watch sidecar
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
leseb committed Dec 13, 2021
1 parent 5c1e459 commit 892c9a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/rook/ceph/mgr.go
Expand Up @@ -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)
Expand Down

0 comments on commit 892c9a2

Please sign in to comment.