From 66d2866fd257062fa053851b7cc7c38c331f11ba Mon Sep 17 00:00:00 2001 From: bitliu Date: Wed, 21 Feb 2024 11:48:01 +0800 Subject: [PATCH] update Signed-off-by: bitliu --- internal/infrastructure/kubernetes/proxy/resource_provider.go | 2 -- .../infrastructure/kubernetes/ratelimit/resource_provider.go | 2 -- 2 files changed, 4 deletions(-) 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