diff --git a/internal/infrastructure/kubernetes/proxy/resource_provider.go b/internal/infrastructure/kubernetes/proxy/resource_provider.go index 9187bb6f3939..725a1202b455 100644 --- a/internal/infrastructure/kubernetes/proxy/resource_provider.go +++ b/internal/infrastructure/kubernetes/proxy/resource_provider.go @@ -268,8 +268,6 @@ func (r *ResourceRender) Deployment() (*appsv1.Deployment, error) { // apply merge patch to deployment if merged, err := deploymentConfig.ApplyMergePatch(deployment); err == nil { deployment = merged - } else { - return nil, err } return deployment, nil diff --git a/internal/infrastructure/kubernetes/ratelimit/resource_provider.go b/internal/infrastructure/kubernetes/ratelimit/resource_provider.go index 093a8dd4b353..5e4a2a2639bd 100644 --- a/internal/infrastructure/kubernetes/ratelimit/resource_provider.go +++ b/internal/infrastructure/kubernetes/ratelimit/resource_provider.go @@ -208,8 +208,6 @@ func (r *ResourceRender) Deployment() (*appsv1.Deployment, error) { // apply merge patch to deployment if merged, err := r.rateLimitDeployment.ApplyMergePatch(deployment); err == nil { deployment = merged - } else { - return nil, err } return deployment, nil