From af6e7354d698a51d14a41f01a72d915d3be51f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 7 May 2026 20:58:23 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20logs=20=E2=80=94=20=D1=83=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D1=85=D0=B0=D1=80=D0=B4=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=20user-container,=20=D0=B2=D0=B7=D1=8F=D1=82=D1=8C=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D0=B9=D0=BD=D0=B5=D1=80=20=D0=BF=D0=BE=D0=B4=D0=B0=20(v1.3.62)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/deploy/console.yaml | 5 ++++- console/internal/api/handlers.go | 4 ++-- console/ui/index.html | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/console/deploy/console.yaml b/console/deploy/console.yaml index d233fa6..3fa1c79 100644 --- a/console/deploy/console.yaml +++ b/console/deploy/console.yaml @@ -12,6 +12,9 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "list"] + - apiGroups: [""] + resources: ["pods/log"] + verbs: ["get"] - apiGroups: ["apps"] resources: ["deployments"] verbs: ["get", "list", "update", "patch"] @@ -52,7 +55,7 @@ spec: serviceAccountName: fission-console containers: - name: console - image: naeel/fission-console:v1.3.61 + image: naeel/fission-console:v1.3.62 imagePullPolicy: Always ports: - containerPort: 8090 diff --git a/console/internal/api/handlers.go b/console/internal/api/handlers.go index 2c38d0b..401b089 100644 --- a/console/internal/api/handlers.go +++ b/console/internal/api/handlers.go @@ -22,10 +22,10 @@ import ( "fission-console/internal/model" "fission-console/internal/runtime" + corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - corev1 "k8s.io/api/core/v1" ) // validFuncName — RFC 1123 subdomain label: строчные буквы+цифры+дефис, без дефиса в начале/конце. @@ -1651,8 +1651,8 @@ func (s *Server) handleGetFunctionLogs(w http.ResponseWriter, r *http.Request, n var allLogs strings.Builder tailLines := int64(100) for _, pod := range pods.Items { + // Container не указываем — kubernetes берёт первый (environment container) req := s.kube.CoreV1().Pods(ns).GetLogs(pod.Name, &corev1.PodLogOptions{ - Container: "user-container", TailLines: &tailLines, }) rc, err := req.Stream(ctx) diff --git a/console/ui/index.html b/console/ui/index.html index b068ed0..9b43379 100644 --- a/console/ui/index.html +++ b/console/ui/index.html @@ -102,7 +102,7 @@
NUBES
FISSION CONSOLE
-
v1.3.61
+
v1.3.62
@@ -474,7 +474,7 @@
- v1.3.61 + v1.3.62