Skip to content

Commit

Permalink
fix: make immage cache config apply immediately
Browse files Browse the repository at this point in the history
Allow to change image cache config without a reboot.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Nov 25, 2024
1 parent 56e1ee7 commit 84459d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ func (r *Runtime) CanApplyImmediate(cfg config.Provider) error {
// * .machine.nodeTaints
// * .machine.features.kubernetesTalosAPIAccess
// * .machine.features.kubePrism
// * .machine.features.localDNS
// * .machine.features.hostDNS
// * .machine.features.imageCache
newConfig.ConfigDebug = currentConfig.ConfigDebug
newConfig.ClusterConfig = currentConfig.ClusterConfig

Expand Down Expand Up @@ -163,6 +164,7 @@ func (r *Runtime) CanApplyImmediate(cfg config.Provider) error {
newConfig.MachineConfig.MachineFeatures.KubernetesTalosAPIAccessConfig = currentConfig.MachineConfig.MachineFeatures.KubernetesTalosAPIAccessConfig
newConfig.MachineConfig.MachineFeatures.KubePrismSupport = currentConfig.MachineConfig.MachineFeatures.KubePrismSupport
newConfig.MachineConfig.MachineFeatures.HostDNSSupport = currentConfig.MachineConfig.MachineFeatures.HostDNSSupport
newConfig.MachineConfig.MachineFeatures.ImageCache = currentConfig.MachineConfig.MachineFeatures.ImageCache
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ The list of config changes allowed to be applied immediately in Talos {{< releas
* `.machine.kernel`
* `.machine.registries` (CRI containerd plugin will not pick up the registry authentication settings without a reboot)
* `.machine.features.kubernetesTalosAPIAccess`
* `.machine.features.hostDNS`
* `.machine.features.kubePrism`

### `talosctl apply-config`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ The list of config changes allowed to be applied immediately in Talos {{< releas
* `.machine.kernel`
* `.machine.registries` (CRI containerd plugin will not pick up the registry authentication settings without a reboot)
* `.machine.features.kubernetesTalosAPIAccess`
* `.machine.features.hostDNS`
* `.machine.features.imageCache`
* `.machine.features.kubePrism`

### `talosctl apply-config`

Expand Down

0 comments on commit 84459d9

Please sign in to comment.