Commit d40fc087 authored by huangzy's avatar huangzy Committed by Brad Davidson

allow helm controller set owner reference

Signed-off-by: 's avatarhuangzy <huangzynn@outlook.com> (cherry picked from commit 6fcaad55) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 8a7b0b75
...@@ -220,7 +220,7 @@ func coreControllers(ctx context.Context, sc *Context, config *Config) error { ...@@ -220,7 +220,7 @@ func coreControllers(ctx context.Context, sc *Context, config *Config) error {
return err 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) helm := sc.Helm.WithAgent(restConfig.UserAgent)
batch := sc.Batch.WithAgent(restConfig.UserAgent) batch := sc.Batch.WithAgent(restConfig.UserAgent)
auth := sc.Auth.WithAgent(restConfig.UserAgent) auth := sc.Auth.WithAgent(restConfig.UserAgent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment