From c463aba33ca587e82d81d73a99b9ee21ca73ea3a Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Wed, 11 Dec 2024 16:35:27 +0100 Subject: [PATCH] Also mark existing restarts for deletion --- pkg/comp-functions/functions/vshnpostgres/restart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/comp-functions/functions/vshnpostgres/restart.go b/pkg/comp-functions/functions/vshnpostgres/restart.go index bb3f115468..6c48fa36d2 100644 --- a/pkg/comp-functions/functions/vshnpostgres/restart.go +++ b/pkg/comp-functions/functions/vshnpostgres/restart.go @@ -155,7 +155,7 @@ func keepRecentRestartOps(ctx context.Context, svc *runtime.ServiceRuntime, comp continue } - err = svc.SetDesiredKubeObject(&op, r.Resource.GetName()) + err = svc.SetDesiredKubeObject(&op, r.Resource.GetName(), runtime.KubeOptionAllowDeletion) if err != nil { return err }