1
0
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:
Eric Promislow
2024-07-26 12:07:29 -07:00
committed by Michael Bolot
parent 435e220795
commit 72384a606d

View File

@@ -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
}
}
}