deads2k: Automated cherry pick of #99946: tweak validation to avoid mutation

JobBuild
bfbe6346
03-17 13:14
100317
03-16 19:50
f53a6c5d
03-16 19:49
pull-kubernetes-bazel-build 1374456953039753216 1372174207344971776 1371911523584184320
pull-kubernetes-bazel-test 1374456953060724736 1372174207370137600 1371911523617738752
pull-kubernetes-dependencies 1374456953081696256 1372174207395303424 1371911523659681792
pull-kubernetes-e2e-gce 1374456952976838656 1374412257076711424 1372425951274602496 1372203215675723776 1372174207265280000 1371911523466743808
pull-kubernetes-e2e-gce-100-performance 1374456953022976000 1372174207328194560 1371911523550629888
pull-kubernetes-e2e-kind 1374456953144610816 1372174207458217984 1371911523730984960
pull-kubernetes-integration 1374456953115250688 1372174207420469248 1371911523693236224
pull-kubernetes-node-e2e 1374456952981032960 1372174207286251520 1371911523504492544
pull-kubernetes-typecheck 1374456953152999424 1372174207483383808 1371911523751956480
pull-kubernetes-verify 1374456953186553856 1372174207508549632 1371911523772928000