From 81c66757e1ccffcad9708ea755ea2358e129201e Mon Sep 17 00:00:00 2001 From: derailed Date: Mon, 4 Mar 2024 16:11:39 -0700 Subject: [PATCH] [Bug] Fix #2579 --- internal/dao/registry.go | 2 +- internal/model1/table_data.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/dao/registry.go b/internal/dao/registry.go index 3aaf1bf5ac..fd19c6c4e9 100644 --- a/internal/dao/registry.go +++ b/internal/dao/registry.go @@ -101,7 +101,7 @@ func AccessorFor(f Factory, gvr client.GVR) (Accessor, error) { client.NewGVR("v1/pods"): &Pod{}, client.NewGVR("v1/nodes"): &Node{}, client.NewGVR("v1/namespaces"): &Namespace{}, - client.NewGVR("v1/configmap"): &ConfigMap{}, + client.NewGVR("v1/configmaps"): &ConfigMap{}, client.NewGVR("v1/secrets"): &Secret{}, client.NewGVR("apps/v1/deployments"): &Deployment{}, client.NewGVR("apps/v1/daemonsets"): &DaemonSet{}, diff --git a/internal/model1/table_data.go b/internal/model1/table_data.go index 2b8cd096fe..10b0c3c654 100644 --- a/internal/model1/table_data.go +++ b/internal/model1/table_data.go @@ -376,6 +376,7 @@ func (t *TableData) sortCol(vs *config.ViewSetting) (SortColumn, error) { psc.Name = t.header[0].Name } } + psc.ASC = true return psc, nil }