From 4757ce45229c5a56dfb95dee6adaddf4fd30614c Mon Sep 17 00:00:00 2001 From: bjwswang Date: Thu, 11 Apr 2024 12:00:13 +0800 Subject: [PATCH] chore: avoid to update persistent volume claim which is easy to lead a conflict Signed-off-by: bjwswang --- pkg/worker/worker.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/worker/worker.go b/pkg/worker/worker.go index 341e09724..1f008af0d 100644 --- a/pkg/worker/worker.go +++ b/pkg/worker/worker.go @@ -273,9 +273,10 @@ func (podWorker *PodWorker) BeforeStart(ctx context.Context) error { case Panic: return err case Update: - if err = podWorker.c.Update(ctx, pvc); err != nil { - return err - } + // DO NOT UPDATE PVC which is easily caused a conflict + // if err = podWorker.c.Update(ctx, pvc); err != nil { + // return err + // } case Create: err = podWorker.c.Create(ctx, pvc) if err != nil {