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 }