prabhat-kumar96
385f0905e9
log: expose conmon log rotation options through REST API and CLI
...
As of conmon 2.2.0, conmon supports log file rotation via --log-rotate
and --log-max-files. This commit exposes those options through Podman's
REST API, specgen model, CLI (--log-opt), and libpod container runtime
so that users managing containers through the API can configure conmon
log rotation settings.
New --log-opt keys accepted:
max-file=<n> Maximum number of rotated log backup files.
Setting this implicitly enables log rotation.
log-rotate=true|false Explicitly enable or disable log rotation.
Options flow:
CLI / REST API
-> specgenutil parses and validates new opts
-> specgen.LogConfig.Options carries max-file and log-rotate
-> generate.MakeContainerFromSpec calls WithLogMaxFiles/WithLogRotate
-> libpod stores LogMaxFiles and LogRotate in ContainerConfig
-> oci_conmon_common.go passes --log-max-files/--log-rotate to conmon
podman inspect now reflects rotation settings in HostConfig.LogConfig.Config.
Fixes: https://github.com/containers/podman/issues/29543
Signed-off-by: prabhat-kumar96 <prabhatmathur9927@gmail.com >
2026-10-24 15:44:16 +05:30
..
2026-09-24 00:37:34 +05:30
2026-04-22 14:02:25 -05:00
2026-10-16 08:44:48 +05:30
2026-08-18 16:57:53 +05:30
2026-04-22 14:02:25 -05:00
2026-03-09 16:08:43 +01:00
2026-05-21 13:09:42 -07:00
2026-10-05 17:25:44 +09:00
2026-05-05 15:42:04 -04:00
2026-04-22 14:02:25 -05:00
2026-10-19 19:37:25 +03:00
2026-06-03 07:28:22 +02:00
2026-10-24 15:44:16 +05:30
2026-10-06 13:33:03 +02:00
2026-10-06 13:33:03 +02:00
2026-10-06 13:33:03 +02:00
2026-09-11 21:32:26 +05:30
2026-04-22 14:02:25 -05:00
2026-10-16 14:46:35 +02:00
2026-02-27 22:18:36 +01:00
2026-09-22 19:26:23 +05:30
2026-09-22 19:26:23 +05:30
2026-10-24 15:44:16 +05:30
2026-10-21 18:39:02 +02:00
2026-09-30 18:21:36 +02:00
2026-04-30 09:52:08 -07:00
2026-09-30 18:21:36 +02:00
2026-02-27 22:18:53 +01:00
2026-10-06 19:13:09 +08:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-09-30 18:21:36 +02:00
2026-02-27 22:18:36 +01:00
2026-10-06 13:33:03 +02:00
2026-03-12 17:22:01 +01:00
2026-10-06 13:33:03 +02:00
2026-10-06 13:33:03 +02:00
2026-09-30 18:21:36 +02:00
2026-09-30 18:21:36 +02:00
2026-04-22 14:02:25 -05:00
2026-09-11 21:32:26 +05:30
2026-02-27 22:18:53 +01:00
2026-04-22 14:02:25 -05:00
2026-10-24 15:44:16 +05:30
2026-04-22 14:02:25 -05:00
2026-07-28 18:42:22 +05:00
2026-04-22 14:02:25 -05:00
2026-09-10 16:55:33 +00:00
2026-09-10 16:55:33 +00:00
2026-02-27 22:18:53 +01:00
2026-09-15 22:09:57 +03:00
2026-05-22 14:15:49 -07:00
2026-06-30 10:32:32 +02:00
2026-04-22 14:02:25 -05:00
2026-07-22 08:41:59 +02:00
2026-09-07 09:33:26 -04:00
2026-08-12 11:21:39 +02:00
2026-08-14 01:35:03 +05:30
2026-04-22 14:02:25 -05:00
2026-07-28 18:52:27 +02:00
2026-06-19 13:25:09 +02:00
2026-06-19 13:25:09 +02:00
2026-04-22 14:02:25 -05:00
2026-08-14 01:35:03 +05:30
2026-04-02 15:06:37 +02:00
2026-10-24 15:44:16 +05:30
2026-08-14 01:35:03 +05:30
2026-04-22 14:02:25 -05:00
2026-02-27 22:18:36 +01:00
2026-09-04 11:37:47 +02:00
2026-08-14 21:14:17 +05:30
2026-09-04 11:37:47 +02:00
2026-10-24 15:44:16 +05:30
2026-06-02 19:02:38 +08:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-06-02 19:02:38 +08:00
2026-06-02 19:02:38 +08:00
2026-05-22 14:15:49 -07:00
2026-04-22 14:02:25 -05:00
2026-08-24 14:45:40 +05:30
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-09-29 06:05:20 -04:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-05-21 13:09:42 -07:00
2026-05-08 14:07:17 -04:00
2026-10-20 13:16:59 +03:00
2026-08-14 01:35:03 +05:30
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-02-27 22:18:36 +01:00
2026-10-05 17:25:44 +09:00
2026-06-11 21:56:15 +01:00
2026-02-27 22:18:36 +01:00
2026-10-09 07:07:11 +02:00
2026-04-22 14:02:25 -05:00
2026-06-11 21:56:15 +01:00
2026-06-11 21:56:15 +01:00
2026-10-05 17:25:44 +09:00
2026-06-11 21:56:15 +01:00
2026-04-22 14:02:25 -05:00
2026-06-11 21:56:15 +01:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-09-04 20:42:55 +09:00
2026-04-22 14:02:25 -05:00
2026-08-14 01:35:03 +05:30
2026-08-14 01:35:03 +05:30
2026-02-27 22:18:36 +01:00
2026-05-21 13:09:42 -07:00
2026-10-05 17:25:44 +09:00
2026-10-19 20:33:05 +08:00
2026-10-05 17:25:44 +09:00
2026-04-22 14:02:25 -05:00
2026-10-05 15:32:24 -04:00