Skip to content

Commit 16f23da

Browse files
pohlyk8s-publishing-bot
authored andcommitted
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. Kubernetes-commit: bb8e051b4b95e1eb0e2dc4e3e25b4373a8a6307d
1 parent 5fd8a44 commit 16f23da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/v1/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ type ResourceRequirements struct {
23202320
// This is an alpha field and requires enabling the
23212321
// DynamicResourceAllocation feature gate.
23222322
//
2323-
// This field is immutable.
2323+
// This field is immutable. It can only be set for containers.
23242324
//
23252325
// +listType=map
23262326
// +listMapKey=name

0 commit comments

Comments
 (0)