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
parent
e36716a3ff
commit
6908d62094
|
|
@ -367,7 +367,7 @@ func loadPreferred(f Factory, m ResourceMetas) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func isStandardGroup(gv string) bool {
|
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](
|
var deprecatedGVRs = sets.New[client.GVR](
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue