mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-08-08 23:37:11 +00:00
- Add early exit when specific container is found in calculatePodRequestsFromContainers - Add error handling for non-existent containers following existing patterns - Maintain all existing functionality for pod-level resources and feature gates - Include comprehensive function documentation The optimization eliminates unnecessary container iterations when HPA targets specific containers, providing significant performance improvements for pods with many containers while preserving full backward compatibility