From 049aca937adb9711a44bbd393211292f25e4bd75 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 25 Oct 2021 16:18:31 +0300 Subject: [PATCH] Set the managed fields owner to helm-controller Signed-off-by: Stefan Prodan --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 77c399507..1a59bf5a3 100644 --- a/main.go +++ b/main.go @@ -22,6 +22,7 @@ import ( "time" flag "github.com/spf13/pflag" + "helm.sh/helm/v3/pkg/kube" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" @@ -105,6 +106,9 @@ func main() { watchNamespace = os.Getenv("RUNTIME_NAMESPACE") } + // set the managedFields owner for resources reconciled from Helm charts + kube.ManagedFieldsManager = controllerName + restConfig := client.GetConfigOrDie(clientOptions) mgr, err := ctrl.NewManager(restConfig, ctrl.Options{ Scheme: scheme,