Skip to content

Commit bc4d860

Browse files
committed
fixed to pass map[string]interface instead of unstructured.Unstructured
Signed-off-by: Jordan Keister <[email protected]>
1 parent 425f614 commit bc4d860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/operators/catalog/operator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ func validateExistingCRs(dynamicClient dynamic.Interface, gr schema.GroupResourc
22502250
// lister will only provide unstructured objects as runtime.Object, so this should never fail to convert
22512251
// if it does, it's a programming error
22522252
cr := obj.(*unstructured.Unstructured)
2253-
err = validation.ValidateCustomResource(field.NewPath(""), *cr, validator).ToAggregate()
2253+
err = validation.ValidateCustomResource(field.NewPath(""), cr.UnstructuredContent(), validator).ToAggregate()
22542254
if err != nil {
22552255
var namespacedName string
22562256
if cr.GetNamespace() == "" {

0 commit comments

Comments
 (0)