ctrcfg: Fix LogSizeMax value check
before, we weren't properly checking LogSizeMax was an empty value. As such, we incorrectly merged the config changes, which bricked the runtime when LogSizeMax wasn't defined.
Fix this by using LogSizeMax uniformly by checking against its Value() method
@@ -195,7 +195,7 @@ func updateCRIOConfig(data []byte, internal *mcfgv1.ContainerRuntimeConfiguratio
if internal.PidsLimit > 0 {
tomlConf.Crio.Runtime.PidsLimit = internal.PidsLimit
}
- if internal.LogSizeMax != (resource.Quantity{}) {
+ if internal.LogSizeMax.Value() != 0 {
tomlConf.Crio.Runtime.LogSizeMax = internal.LogSizeMax.Value()
}
if internal.LogLevel != "" {
