forked from opendatahub-io/opendatahub-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal_config.py
More file actions
24 lines (19 loc) · 865 Bytes
/
global_config.py
File metadata and controls
24 lines (19 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from utilities.constants import RHOAI_OPERATOR_NAMESPACE
global config # type:ignore[unused-ignore] # noqa: PLW0604
dsc_name: str = "default-dsc"
must_gather_base_dir: str = "must-gather-base-dir"
dsci_name: str = "default-dsci"
dependent_operators: str = "authorino-operator"
use_unprivileged_client: bool = True
# overwrite the followings in conftest.py, in updated_global_config() if distribution is upstream
distribution: str = "downstream"
applications_namespace: str = "redhat-ods-applications"
model_registry_namespace: str = "rhoai-model-registries"
operator_namespace: str = RHOAI_OPERATOR_NAMESPACE
for _dir in dir():
val = locals()[_dir]
if type(val) not in [bool, list, dict, str, int]:
continue
if _dir in ["encoding", "py_file"]:
continue
config[_dir] = locals()[_dir] # type:ignore[name-defined] # noqa: F821