diff --git a/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/types_string.go b/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/types_string.go index bd891dea04..d569dd64bc 100644 --- a/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/types_string.go +++ b/pkg/k8s/apis/spiderpool.spidernet.io/v2beta1/types_string.go @@ -55,7 +55,7 @@ func (in *IPPoolStatus) String() string { } s := strings.Join([]string{`&IPPoolStatus{`, - `AllocatedIPs:` + fmt.Sprintf("%+v", in.AllocatedIPs) + `,`, + `AllocatedIPs:` + stringutil.ValueToStringGenerated(in.AllocatedIPs) + `,`, `TotalIPCount:` + stringutil.ValueToStringGenerated(in.TotalIPCount) + `,`, `AllocatedIPCount:` + stringutil.ValueToStringGenerated(in.AllocatedIPCount) + `,`, `}`, @@ -204,7 +204,7 @@ func (in *SubnetStatus) String() string { } s := strings.Join([]string{`SubnetStatus{`, - `ControlledIPPools:` + fmt.Sprintf("%v", in.ControlledIPPools) + `,`, + `ControlledIPPools:` + stringutil.ValueToStringGenerated(in.ControlledIPPools) + `,`, `TotalIPCount:` + stringutil.ValueToStringGenerated(in.TotalIPCount) + `,`, `AllocatedIPCount:` + stringutil.ValueToStringGenerated(in.AllocatedIPCount) + `,`, `}`,