update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag

This commit is contained in:
Keerthan Reddy Mala
2023-07-14 09:47:59 -07:00
parent f3f5dd99ac
commit d2df65ba6c
70 changed files with 163 additions and 115 deletions

View File

@@ -154,7 +154,9 @@ func buildStructCacheEntry(t reflect.Type, infos map[string]*FieldCacheEntry, fi
if field.Type.Kind() == reflect.Ptr {
e = field.Type.Elem()
}
buildStructCacheEntry(e, infos, append(fieldPath, field.Index))
if e.Kind() == reflect.Struct {
buildStructCacheEntry(e, infos, append(fieldPath, field.Index))
}
continue
}
info := &FieldCacheEntry{JsonName: jsonName, isOmitEmpty: isOmitempty, fieldPath: append(fieldPath, field.Index), fieldType: field.Type}