From d40fc0878ffa3b12277ad23cddf690ebe4c582b5 Mon Sep 17 00:00:00 2001 From: huangzy Date: Tue, 30 Apr 2024 17:21:46 +0800 Subject: [PATCH] allow helm controller set owner reference Signed-off-by: huangzy (cherry picked from commit 6fcaad553da898e5b5dc2d66e64d23b37d602691) Signed-off-by: Brad Davidson --- pkg/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index 925830a957..0ccaa49f91 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -220,7 +220,7 @@ func coreControllers(ctx context.Context, sc *Context, config *Config) error { return err } - apply := apply.New(k8s, apply.NewClientFactory(restConfig)).WithDynamicLookup() + apply := apply.New(k8s, apply.NewClientFactory(restConfig)).WithDynamicLookup().WithSetOwnerReference(false, false) helm := sc.Helm.WithAgent(restConfig.UserAgent) batch := sc.Batch.WithAgent(restConfig.UserAgent) auth := sc.Auth.WithAgent(restConfig.UserAgent)