mirror of
https://github.com/rancher/steve.git
synced 2025-09-05 09:21:12 +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,
|
Version: version.Name,
|
||||||
Kind: crd.Spec.Names.Kind,
|
Kind: crd.Spec.Names.Kind,
|
||||||
}
|
}
|
||||||
|
if version.Schema != nil {
|
||||||
gvkToCRD[gvk] = version.Schema.OpenAPIV3Schema
|
gvkToCRD[gvk] = version.Schema.OpenAPIV3Schema
|
||||||
|
} else {
|
||||||
|
gvkToCRD[gvk] = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user