feat: logs modal + ESC close + /functions/:name/logs endpoint (v1.3.61)

This commit is contained in:
“Naeel”
2026-05-07 20:51:02 +04:00
parent a9bd2e93c7
commit 9b0089e15a
8 changed files with 136 additions and 5 deletions
+7
View File
@@ -14,6 +14,7 @@ import (
"fission-console/internal/auth"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
)
@@ -37,6 +38,11 @@ func main() {
log.Fatalf("create dynamic client: %v", err)
}
kube, err := kubernetes.NewForConfig(cfg)
if err != nil {
log.Fatalf("create kubernetes client: %v", err)
}
authenticator := &auth.MultiAuthenticator{
JWT: auth.NewDeckAuthenticator(auth.DefaultDeckAPIs, nil),
Demo: &auth.DemoAuthenticator{},
@@ -44,6 +50,7 @@ func main() {
srv := api.NewServer(api.Config{
Dyn: dyn,
Kube: kube,
Namespace: namespace,
RouterURL: routerURL,
HTTPTimeout: httpTimeout,