fix - skip if crd has no schema defined
@@ -138,6 +138,11 @@ func (o *Controller) parseCRD(crd unstructured.Unstructured) {
}
}
+ if openV3schema == nil {
+ log.Log.V(3).Info("skip adding schema, CRD has no properties", "name", crdName)
+ return
+ }
+
schemaRaw, _ := json.Marshal(openV3schema)
if len(schemaRaw) < 1 {
log.Log.V(3).Info("could not parse crd schema", "name", crdName)
