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
"<name>.<group>", therefore the CRD list view could not open the listing
of that specific CRD.
mine
D54 2025-03-30 16:48:42 +02:00 committed by GitHub
parent e36716a3ff
commit 6908d62094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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](