Skip to content

Commit

Permalink
SS-1288 Fix secrets view for mlflow (#287)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Churikov <nikita@chur.ru>
  • Loading branch information
churnikov authored Feb 25, 2025
1 parent 33acd64 commit 8e8a6a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def get(self, request, project, app_slug, app_id):
username = subprocess.run(
(
"kubectl get secret "
f"--namespace default {subdomain.subdomain}-mlflow-tracking "
f"--namespace {settings.NAMESPACE} {subdomain.subdomain}-mlflow-tracking "
'-o jsonpath="{.data.admin-user}"'
).split(),
check=True,
Expand All @@ -328,7 +328,7 @@ def get(self, request, project, app_slug, app_id):
password = subprocess.run(
(
"kubectl get secret "
f"--namespace default {subdomain.subdomain}-mlflow-tracking "
f"--namespace {settings.NAMESPACE} {subdomain.subdomain}-mlflow-tracking "
'-o jsonpath="{.data.admin-password}"'
).split(),
check=True,
Expand Down
5 changes: 0 additions & 5 deletions projects/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import base64
import datetime
import logging

import requests as r
from django.apps import apps
from django.conf import settings as django_settings
from django.contrib import messages
Expand All @@ -24,11 +21,9 @@
from guardian.shortcuts import assign_perm, get_users_with_perms, remove_perm

from apps.app_registry import APP_REGISTRY
from apps.models import BaseAppInstance
from common.tasks import send_email_task

from .exceptions import ProjectCreationException
from .forms import PublishProjectToGitHub
from .models import Environment, Flavor, Project, ProjectLog, ProjectTemplate
from .tasks import create_resources_from_template, delete_project

Expand Down

0 comments on commit 8e8a6a2

Please sign in to comment.