From b037a302e733211cce3266d6a214de8d4c184b9f Mon Sep 17 00:00:00 2001 From: "guozhi.li" Date: Tue, 19 Sep 2023 17:56:14 +0800 Subject: [PATCH] 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