From 6a495c8592112348097d70bcf82a802987a35fbf Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Tue, 19 Sep 2023 18:22:15 +0800 Subject: [PATCH] fix: avoid the NewPool will change the tenant's label (#1782) avoid the NewPool will change the tenant's label --- pkg/resources/statefulsets/minio-statefulset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resources/statefulsets/minio-statefulset.go b/pkg/resources/statefulsets/minio-statefulset.go index 41e78728764..0856e0fdbac 100644 --- a/pkg/resources/statefulsets/minio-statefulset.go +++ b/pkg/resources/statefulsets/minio-statefulset.go @@ -467,7 +467,7 @@ type NewPoolArgs struct { // NewPool creates a new StatefulSet for the given Cluster. func NewPool(args *NewPoolArgs) *appsv1.StatefulSet { - t := args.Tenant + t := args.Tenant.DeepCopy() skipEnvVars := args.SkipEnvVars pool := args.Pool poolStatus := args.PoolStatus