Skip to content

Commit 6f80125

Browse files
authored
SS-1288 Pin mlflow version (#293)
Signed-off-by: Nikita Churikov <[email protected]>
1 parent d79f772 commit 6f80125

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

apps/tasks.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import re
12
import subprocess
2-
import uuid
33

44
import yaml
55
from celery import shared_task
@@ -17,6 +17,8 @@
1717

1818
logger = get_logger(__name__)
1919

20+
CHART_REGEX = re.compile(r"^(?P<chart>.+):(?P<version>.+)$")
21+
2022

2123
@app.task
2224
def delete_old_objects():
@@ -194,9 +196,15 @@ def deploy_resource(serialized_instance):
194196
logger.info("Deploying resource for instance %s", instance)
195197
values = instance.k8s_values
196198
release = values["subdomain"]
199+
chart: str = instance.chart
197200
if "ghcr" in instance.chart:
198201
version = instance.chart.split(":")[-1]
199202
chart = "oci://" + instance.chart.split(":")[0]
203+
elif chart.startswith("oci://"):
204+
match = CHART_REGEX.match(chart)
205+
if match:
206+
chart = match.group("chart")
207+
version = match.group("version")
200208
else:
201209
version = None
202210
chart = instance.chart

fixtures/apps_fixtures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{
4040
"fields": {
4141
"category": "develop",
42-
"chart": "oci://registry-1.docker.io/bitnamicharts/mlflow",
42+
"chart": "oci://registry-1.docker.io/bitnamicharts/mlflow:2.5.2",
4343
"created_on": "2025-02-12T21:34:37.815Z",
4444
"description": "",
4545
"name": "MLFlow",

0 commit comments

Comments
 (0)