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
38 lines (33 loc) · 1.28 KB
/
constants.py
File metadata and controls
38 lines (33 loc) · 1.28 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
38
# Job identification
ASYNC_UPLOAD_JOB_NAME = "model-sync-async-job"
ASYNC_UPLOAD_IMAGE = "quay.io/opendatahub/model-registry-job-async-upload:v0.3.0"
# Job labels and annotations
ASYNC_JOB_LABELS = {
"app.kubernetes.io/name": "model-registry-async-job",
"app.kubernetes.io/component": "async-job",
"app.kubernetes.io/part-of": "model-registry",
"component": "model-registry-job",
"modelregistry.opendatahub.io/job-type": "async-upload",
}
ASYNC_JOB_ANNOTATIONS = {
"modelregistry.opendatahub.io/description": "Asynchronous job for uploading models to Model Registry and converting them to ModelCar format" # noqa: E501
}
# Model sync parameters (from sample YAML)
MODEL_SYNC_CONFIG = {
"MODEL_ID": "1",
"MODEL_VERSION_ID": "2",
"MODEL_ARTIFACT_ID": "1",
"SOURCE_TYPE": "s3",
"DESTINATION_TYPE": "oci",
"SOURCE_AWS_KEY": "my-model",
"DESTINATION_OCI_BASE_IMAGE": "public.ecr.aws/docker/library/busybox:latest",
"DESTINATION_OCI_ENABLE_TLS_VERIFY": "false",
}
# Volume mount paths (from sample YAML)
VOLUME_MOUNTS = {
"SOURCE_CREDS_PATH": "/opt/creds/source",
"DEST_CREDS_PATH": "/opt/creds/destination",
"DEST_DOCKERCONFIG_PATH": "/opt/creds/destination/.dockerconfigjson",
}
REPO_NAME = "async-job-test/model-artifact"
TAG = "latest"