mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
fix mapToUnstructured error message
This commit is contained in:
parent
0fe049cb93
commit
8689f22821
@ -722,7 +722,7 @@ func mapToUnstructured(sv, dv reflect.Value) error {
|
||||
dt = dv.Type()
|
||||
}
|
||||
if dt.Kind() != reflect.Map {
|
||||
return fmt.Errorf("cannot convert struct to: %v", dt.Kind())
|
||||
return fmt.Errorf("cannot convert map to: %v", dt.Kind())
|
||||
}
|
||||
|
||||
if !st.Key().AssignableTo(dt.Key()) && !st.Key().ConvertibleTo(dt.Key()) {
|
||||
|
Loading…
Reference in New Issue
Block a user