Skip to content

Commit 3b072d5

Browse files
dbasunaglugi0
authored andcommitted
Add wait for minio pod and update images to multi-arch (opendatahub-io#643)
Co-authored-by: Luca Giorgi <lgiorgi@redhat.com>
1 parent d5eb9b1 commit 3b072d5

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ def minio_pod(
517517
label=pod_labels,
518518
annotations=request.param.get("annotations"),
519519
) as minio_pod:
520+
minio_pod.wait_for_status(status=Pod.Status.RUNNING)
520521
yield minio_pod
521522

522523

tests/model_registry/async_job/test_async_upload_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"minio_pod, oci_registry_pod_with_minio",
3434
[
3535
pytest.param(
36-
MinIo.PodConfig.MODEL_MESH_MINIO_CONFIG,
36+
MinIo.PodConfig.MODEL_REGISTRY_MINIO_CONFIG,
3737
OCIRegistry.PodConfig.REGISTRY_BASE_CONFIG,
3838
)
3939
],

utilities/constants.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class Metadata:
254254
DEFAULT_HTTP_ADDRESS: str = "0.0.0.0"
255255

256256
class PodConfig:
257-
REGISTRY_IMAGE: str = "ghcr.io/project-zot/zot-linux-amd64:v2.1.7"
257+
REGISTRY_IMAGE: str = "ghcr.io/project-zot/zot:v2.1.8"
258258
REGISTRY_BASE_CONFIG: dict[str, Any] = {
259259
"args": None,
260260
"labels": {
@@ -291,9 +291,7 @@ class PodConfig:
291291
"quay.io/jooholee/model-minio@sha256:b9554be19a223830cf792d5de984ccc57fc140b954949f5ffc6560fab977ca7a"
292292
# noqa: E501
293293
)
294-
295-
MINIO_BASE_CONFIG: dict[str, Any] = {
296-
"args": ["server", "/data1"],
294+
MINIO_BASE_LABELS_ANNOTATIONS: dict[str, Any] = {
297295
"labels": {
298296
"maistra.io/expose-route": "true",
299297
},
@@ -302,6 +300,11 @@ class PodConfig:
302300
},
303301
}
304302

303+
MINIO_BASE_CONFIG: dict[str, Any] = {
304+
"args": ["server", "/data1"],
305+
**MINIO_BASE_LABELS_ANNOTATIONS,
306+
}
307+
305308
MODEL_MESH_MINIO_CONFIG: dict[str, Any] = {
306309
"image": "quay.io/trustyai_testing/modelmesh-minio-examples@"
307310
"sha256:d2ccbe92abf9aa5085b594b2cae6c65de2bf06306c30ff5207956eb949bb49da",
@@ -328,6 +331,12 @@ class PodConfig:
328331
**MINIO_BASE_CONFIG,
329332
}
330333

334+
MODEL_REGISTRY_MINIO_CONFIG: dict[str, Any] = {
335+
"image": "quay.io/minio/minio@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e",
336+
"args": ["server", "/data"],
337+
**MINIO_BASE_LABELS_ANNOTATIONS,
338+
}
339+
331340
class RunTimeConfig:
332341
# TODO: Remove runtime_image once ovms/loan_model_alpha model works with latest ovms
333342
IMAGE = "quay.io/opendatahub/openvino_model_server@sha256:564664371d3a21b9e732a5c1b4b40bacad714a5144c0a9aaf675baec4a04b148" # noqa: E501

0 commit comments

Comments
 (0)