Skip to content

Commit

Permalink
fixed to pass map[string]interface instead of unstructured.Unstructured
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Keister <[email protected]>
  • Loading branch information
grokspawn committed Dec 6, 2024
1 parent 425f614 commit bc4d860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/operators/catalog/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ func validateExistingCRs(dynamicClient dynamic.Interface, gr schema.GroupResourc
// lister will only provide unstructured objects as runtime.Object, so this should never fail to convert
// if it does, it's a programming error
cr := obj.(*unstructured.Unstructured)
err = validation.ValidateCustomResource(field.NewPath(""), *cr, validator).ToAggregate()
err = validation.ValidateCustomResource(field.NewPath(""), cr.UnstructuredContent(), validator).ToAggregate()
if err != nil {
var namespacedName string
if cr.GetNamespace() == "" {
Expand Down

0 comments on commit bc4d860

Please sign in to comment.