kubernetes/pkg/apis/storage/validation
Patrick Ohly dfaeacb51f CSIDriver: allow "StorageCapacity" to be modified
When originally introduced, the field was made immutable to be
consistent with the other fields. But in practice allowing it to be
toggled makes more sense, in particular when considering the rollout
of a CSI driver (let it run without using the published
CSIStorageCapacity object, then flip the field, or upgrading from a
driver without support to one which supports it).

The only consumer of this field, the kube-scheduler, can handle
mutation without problems because it always consults the informer
cache to get the current value.
2021-08-11 15:10:30 +02:00
..
validation_test.go CSIDriver: allow "StorageCapacity" to be modified 2021-08-11 15:10:30 +02:00
validation.go CSIDriver: allow "StorageCapacity" to be modified 2021-08-11 15:10:30 +02:00