mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-06 13:11:12 +02:00
Resources code extensively uses DeepCopy to prevent in-memory copy of the resource to be mutated outside of the resource model. Previous implementation relied on YAML serialization to copy the machine configuration which was slow, potentially might lead to panics and it generates pressure on garbage collection. This implementation uses k8s code generator to generate DeepCopy methods with some manual helpers when code generator can't handle it. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>