kubectl ModifyConfig doesn't prevent concurrent access #23964
Closed
Description
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/config/config.go#L193
If multiple kubectl's run kubectl set ...
at the same time, they might leave the file in a bad state. This is probably an edge case now, but if some of the ideas from #23066 get implemented, it could be a slightly worse problem.