Skip to content

Commit 8d91826

Browse files
author
smiletan
authored
Merge pull request #438 from intelligentfu8/cg-rename
[fixed]fix fe pvc collect
2 parents c49735e + 2be7e82 commit 8d91826

File tree

1 file changed

+1
-1
lines changed
  • pkg/controller/sub_controller/disaggregated_cluster/disaggregated_fe

1 file changed

+1
-1
lines changed

pkg/controller/sub_controller/disaggregated_cluster/disaggregated_fe/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (dfc *DisaggregatedFEController) reconcileStatefulset(ctx context.Context,
335335

336336
// RecycleResources pvc resource for fe recycle
337337
func (dfc *DisaggregatedFEController) recycleResources(ctx context.Context, ddc *v1.DorisDisaggregatedCluster) error {
338-
if ddc.Spec.FeSpec.PersistentVolume != nil {
338+
if ddc.Spec.FeSpec.PersistentVolume != nil || len(ddc.Spec.FeSpec.PersistentVolumes) != 0{
339339
return dfc.listAndDeletePersistentVolumeClaim(ctx, ddc)
340340
}
341341
return nil

0 commit comments

Comments
 (0)