Skip to content

Commit 2eda767

Browse files
committed
this fixed the upstream reproducer, but broke unit test
Signed-off-by: Jordan Keister <[email protected]>
1 parent a9f410f commit 2eda767

File tree

1 file changed

+1
-1
lines changed
  • staging/operator-lifecycle-manager/pkg/controller/operators/catalog

1 file changed

+1
-1
lines changed

staging/operator-lifecycle-manager/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, validator).ToAggregate()
22542254
if err != nil {
22552255
var namespacedName string
22562256
if cr.GetNamespace() == "" {

0 commit comments

Comments
 (0)