Make sure to not grow file unboundedly as we perform noop updates or actual updates (I think we saw a comment line being duplicated for each update). This relates to https://github.com/NVIDIA/k8s-dra-driver-gpu/pull/537#issuecomment-3816526053
Make sure to not grow file unboundedly as we perform noop updates or actual updates (I think we saw a comment line being duplicated for each update).
This relates to #537 (comment)