From 630f82cacd9ce72f886aae2a14abc252dcf4bd64 Mon Sep 17 00:00:00 2001 From: Sunggun Yu Date: Sun, 13 Apr 2025 11:08:10 -0400 Subject: [PATCH] fix: include APIResource name in the aliases (#3274) - fix: https://github.com/derailed/k9s/issues/3273 --- internal/view/helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/view/helpers.go b/internal/view/helpers.go index 2e39d07b..b53bc52f 100644 --- a/internal/view/helpers.go +++ b/internal/view/helpers.go @@ -33,6 +33,7 @@ import ( func aliases(m *v1.APIResource, aa sets.Set[string]) sets.Set[string] { ss := sets.New(aa.UnsortedList()...) + ss.Insert(m.Name) ss.Insert(m.ShortNames...) if m.SingularName != "" { ss.Insert(m.SingularName)