Kubernetes: Set Unlimited Audit Log MaxSize When 0 is Specified
Written by Alessio on 2/5/2026
Problem
When MaxSize was set to 0 for audit logs, the system treated it as a small size instead of unlimited. Users expecting unlimited log size couldn't configure it.
Solution
Updated audit log handling to interpret MaxSize=0 as effectively unlimited. Updated test expectations to expect os.File when MaxSize is 0.
Result
MaxSize=0 now correctly produces unlimited audit logs. Users can configure unlimited size explicitly.
Commit: kubernetes/kubernetes@b753a2a