From c5e25637c643b95d3aee6afaa355a9176a8419b7 Mon Sep 17 00:00:00 2001 From: Alexander Zielenski Date: Thu, 19 Oct 2023 07:28:24 -0700 Subject: [PATCH] fix typo --- .../pkg/registry/customresource/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go index 193acaee283..1f49c60f4e7 100644 --- a/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go +++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go @@ -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 { u, ok := obj.(*unstructured.Unstructured) 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