Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing disk_space from spec does not revert to default value #606

Open
mortenlj opened this issue Jan 25, 2024 · 0 comments
Open

Removing disk_space from spec does not revert to default value #606

mortenlj opened this issue Jan 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mortenlj
Copy link
Contributor

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:

  1. kubectl apply -f postgres-no-disk.yaml
  2. Wait for service to start and become ready. Note 80GB disk.
  3. kubectl apply -f postgres-add-disk.yaml
  4. Wait for service to reconcile, adding disk to a total of 100GB.
  5. kubectl apply -f postgres-no-disk.yaml
  6. Wait ... notice that disk is still a total of 100GB, no change is made to the service.

postgres-no-disk.yaml.txt
postgres-add-disk.yaml.txt

@byashimov byashimov added the bug Something isn't working label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants