From 6908d620941a97b03715fdbf2c14d89831a8d0bb Mon Sep 17 00:00:00 2001 From: D54 Date: Sun, 30 Mar 2025 16:48:42 +0200 Subject: [PATCH] fix: List CRDs which has k8s.io in their names (#3237) When a CRD's GV contained k8s.io (e.g. infrastructure.cluster.x-k8s.io/v1beta1), it was considered as standard resource, therefore no alias was generated in the form of ".", therefore the CRD list view could not open the listing of that specific CRD. --- internal/dao/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dao/registry.go b/internal/dao/registry.go index a906b6fe..bcc725f7 100644 --- a/internal/dao/registry.go +++ b/internal/dao/registry.go @@ -367,7 +367,7 @@ func loadPreferred(f Factory, m ResourceMetas) error { } func isStandardGroup(gv string) bool { - return stdGroups.Has(gv) || strings.Contains(gv, "k8s.io") + return stdGroups.Has(gv) || strings.Contains(gv, ".k8s.io") } var deprecatedGVRs = sets.New[client.GVR](