kubernetes/pkg/api/pod
Patrick Ohly f32302e744 api: drop Resources.Claims from PVC and PVC template
PVC and containers share the same ResourceRequirements struct. The Claims field
in it only makes sense when used in containers. When used in a PVC, the field
should have been rejected by validation. This was overlooked when introducing
it, so now persisted objects might have it set and/or people may have started
to rely on it being accepted even when it has no effect.

Therefore we cannot reject it in validation anymore, but we can still strip
it out on create or update.
2023-02-24 16:32:58 +01:00
..
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
util_test.go api: drop Resources.Claims from PVC and PVC template 2023-02-24 16:32:58 +01:00
util.go api: drop Resources.Claims from PVC and PVC template 2023-02-24 16:32:58 +01:00
warnings_test.go Merge pull request #115035 from xing-yang/update_plugin_warning 2023-01-13 12:08:26 -08:00
warnings.go Merge pull request #115035 from xing-yang/update_plugin_warning 2023-01-13 12:08:26 -08:00