aiven-operator
aiven-operator copied to clipboard
Removing `disk_space` from spec does not revert to default value
When a postgres service is defined with additional storage using the disk_space
field on the spec, the service is updated to reflect that change.
If the disk_space
field is removed from the spec in the cluster, then the operator starts reconciling, but no effect is visible on the service in the Aiven console.
To reduce disk space back to the default value, the disk_space
field must be set explicitly to the default value.
Reproduce:
-
kubectl apply -f postgres-no-disk.yaml
- Wait for service to start and become ready. Note 80GB disk.
-
kubectl apply -f postgres-add-disk.yaml
- Wait for service to reconcile, adding disk to a total of 100GB.
-
kubectl apply -f postgres-no-disk.yaml
- Wait ... notice that disk is still a total of 100GB, no change is made to the service.