diff --git a/common/pkg/capi/clustertopology/patches/generator.go b/common/pkg/capi/clustertopology/patches/generator.go index df72c2c67..9945d17ad 100644 --- a/common/pkg/capi/clustertopology/patches/generator.go +++ b/common/pkg/capi/clustertopology/patches/generator.go @@ -59,6 +59,10 @@ func MutateIfApplicable[T runtime.Object]( // Apply the mutation. if err := mutFn(typed); err != nil { + log.WithValues( + "objKind", obj.GetObjectKind().GroupVersionKind(), + "objName", obj.GetName(), + ).Error(err, "failed to apply mutation") return fmt.Errorf("failed to apply mutation: %w", err) }