This commit is contained in:
Alexander Zielenski 2023-10-19 07:28:24 -07:00
parent 31a1c00e49
commit c5e25637c6

View File

@ -162,7 +162,7 @@ func copyNonMetadata(original map[string]interface{}) map[string]interface{} {
func (a customResourceStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { func (a customResourceStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
u, ok := obj.(*unstructured.Unstructured) u, ok := obj.(*unstructured.Unstructured)
if !ok { if !ok {
return field.ErrorList{field.Invalid(field.NewPath(""), u, fmt.Sprintf("has type %T. Must be a pointer to an Unstructured type", u))} return field.ErrorList{field.Invalid(field.NewPath(""), u, fmt.Sprintf("has type %T. Must be a pointer to an Unstructured type", obj))}
} }
var errs field.ErrorList var errs field.ErrorList