From 196d96615635aa5b5228097d54f26ab1b933965f Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Mon, 20 Mar 2023 09:32:56 +0200 Subject: [PATCH] Enable dynamic config on all controllers Signed-off-by: Kimmo Lehto --- phase/install_controllers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phase/install_controllers.go b/phase/install_controllers.go index c9cb1b98..0ee9ccaa 100644 --- a/phase/install_controllers.go +++ b/phase/install_controllers.go @@ -83,6 +83,10 @@ func (p *InstallControllers) Run() error { } }() + if p.Config.Spec.K0s.DynamicConfig { + h.InstallFlags.AddOrReplace("--enable-dynamic-config") + } + log.Infof("%s: installing k0s controller", h) cmd, err := h.K0sInstallCommand() if err != nil {