Fix Kubernetes namespaces for dotted usernames
Build and publish Docker image / build-and-publish (push) Successful in 8s

This commit is contained in:
wfalkowski committed 2026-10-20 19:38:31 +00:00
1 parent 522e5c5634
commit 6732ee9d47
8 files changed
+70 -19

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ from flask import Blueprint, jsonify, request
import json
from urllib.parse import urlsplit
from kubernetes_service import k8s_manager
from namespace_utils import user_namespace
import requests
from werkzeug.utils import secure_filename
from runtime_config import (
@@ -379,7 +380,7 @@ def download_plugin_to_server():
plugin_response.close()
# Upload to server
namespace = f"user-{user['username']}".lower()
namespace = user_namespace(user['username'])
pods = k8s_manager.get_pods_for_server(namespace, server_id)
if not pods: