From 1eefb173a05fdfed06c7e91819cdcb689e02d0b5 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Tue, 3 Sep 2024 09:03:26 +0200 Subject: [PATCH] Remove unused applier field from applier manager Seems to be a remnant from the past. Signed-off-by: Tom Wieczorek (cherry picked from commit c2beea7658e47c06fd4898239e08e752d0d518ca) (cherry picked from commit 4b2efbe7bac49476d8028c7ddcd00343c7c5e848) (cherry picked from commit 04ba246511a007c88495a66850881a8589893e68) --- pkg/applier/manager.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/applier/manager.go b/pkg/applier/manager.go index 27f1ecc48d79..bdc26015fe8d 100644 --- a/pkg/applier/manager.go +++ b/pkg/applier/manager.go @@ -41,7 +41,6 @@ type Manager struct { K0sVars *config.CfgVars KubeClientFactory kubeutil.ClientFactoryInterface - applier Applier bundleDir string stop func(reason string) log *logrus.Entry @@ -66,8 +65,6 @@ func (m *Manager) Init(ctx context.Context) error { m.log = logrus.WithField("component", constant.ApplierManagerComponentName) m.bundleDir = m.K0sVars.ManifestsDir - m.applier = NewApplier(m.K0sVars.ManifestsDir, m.KubeClientFactory) - m.LeaderElector.AddAcquiredLeaseCallback(func() { ctx, cancel := context.WithCancelCause(ctx) stopped := make(chan struct{})