forked from opendatahub-io/opendatahub-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
37 lines (32 loc) · 1.16 KB
/
constants.py
File metadata and controls
37 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from typing import Any
from utilities.constants import ModelFormat
class ModelRegistryEndpoints:
REGISTERED_MODELS: str = "/api/model_registry/v1alpha3/registered_models"
MR_NAMESPACE: str = "rhoai-model-registries"
MR_OPERATOR_NAME: str = "model-registry-operator"
MODEL_NAME: str = "my-model"
MODEL_DICT: dict[str, Any] = {
"model_name": MODEL_NAME,
"model_uri": "https://storage-place.my-company.com",
"model_version": "2.0.0",
"model_description": "lorem ipsum",
"model_format": ModelFormat.ONNX,
"model_format_version": "1",
"model_storage_key": "my-data-connection",
"model_storage_path": "path/to/model",
"model_metadata": {
"int_key": 1,
"bool_key": False,
"float_key": 3.14,
"str_key": "str_value",
},
}
MR_INSTANCE_NAME: str = "model-registry"
ISTIO_CONFIG_DICT: dict[str, Any] = {
"authProvider": "redhat-ods-applications-auth-provider",
"gateway": {"grpc": {"tls": {}}, "rest": {"tls": {}}},
}
DB_RESOURCES_NAME: str = "db-model-registry"
MR_DB_IMAGE_DIGEST: str = (
"public.ecr.aws/docker/library/mysql@sha256:9de9d54fecee6253130e65154b930978b1fcc336bcc86dfd06e89b72a2588ebe"
)