mirror of
https://github.com/rancher/steve.git
synced 2025-09-03 16:35:25 +00:00
Handle schema-less CRDs
This commit is contained in:
committed by
Michael Bolot
parent
435e220795
commit
72384a606d
@@ -223,7 +223,11 @@ func listGVKModels(models proto.Models, groups *metav1.APIGroupList, crdCache wa
|
||||
Version: version.Name,
|
||||
Kind: crd.Spec.Names.Kind,
|
||||
}
|
||||
gvkToCRD[gvk] = version.Schema.OpenAPIV3Schema
|
||||
if version.Schema != nil {
|
||||
gvkToCRD[gvk] = version.Schema.OpenAPIV3Schema
|
||||
} else {
|
||||
gvkToCRD[gvk] = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user