diff --git a/internal/webhookcert/resources.go b/internal/webhookcert/resources.go index da9e45b15..67f769d09 100644 --- a/internal/webhookcert/resources.go +++ b/internal/webhookcert/resources.go @@ -118,7 +118,7 @@ func patchConversionWebhookConfig(ctx context.Context, c client.Client, conversi return fmt.Errorf("failed to get logpipelines CRD: %w", err) } - patch := client.MergeFrom(logPipelineCRD.DeepCopy()) + patch := client.StrategicMergeFrom(logPipelineCRD.DeepCopy()) logPipelineCRD.Spec.Conversion = &conversion