Skip to content

Commit a55bf55

Browse files
committed
mgr/rook: fixing the namespaces used to access some resources/config
Signed-off-by: Redouane Kachach <[email protected]>
1 parent f2c392e commit a55bf55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pybind/mgr/rook/rook_cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def __init__(self, coreV1_api: 'client.CoreV1Api', rook_env: 'RookEnv'):
226226
def fetch(self) -> None:
227227
""" Collect the devices information from k8s configmaps"""
228228
self.dev_cms: KubernetesResource = KubernetesResource(self.coreV1_api.list_namespaced_config_map,
229-
namespace=self.rook_env.namespace,
229+
namespace=self.rook_env.operator_namespace,
230230
label_selector='app=rook-discover')
231231

232232
def devices(self) -> Dict[str, List[Device]]:
@@ -760,7 +760,7 @@ def get_storage_class(self) -> 'client.V1StorageClass':
760760

761761
def get_discovered_devices(self, nodenames: Optional[List[str]] = None) -> Dict[str, List[Device]]:
762762
self.fetcher: Optional[DefaultFetcher] = None
763-
op_settings = self.coreV1_api.read_namespaced_config_map(name="rook-ceph-operator-config", namespace=self.rook_env.namespace).data
763+
op_settings = self.coreV1_api.read_namespaced_config_map(name="rook-ceph-operator-config", namespace=self.rook_env.operator_namespace).data
764764
if op_settings.get('ROOK_ENABLE_DISCOVERY_DAEMON', 'false').lower() == 'true':
765765
self.fetcher = PDFetcher(self.coreV1_api, self.rook_env)
766766
else:

0 commit comments

Comments
 (0)