allow helm controller set owner reference

Signed-off-by: huangzy <huangzynn@outlook.com>
(cherry picked from commit 6fcaad553d)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/10290/head
huangzy 2024-04-30 17:21:46 +08:00 committed by Brad Davidson
parent edad9c6873
commit 4fa7991664
1 changed files with 1 additions and 1 deletions

View File

@ -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)