postgres-operator/pkg/util
Oleksii Kliukin 7b0ca31bfb Implements EBS volume resizing #35.
In order to support volumes different from EBS and filesystems other than EXT2/3/4 the respective code parts were implemented as interfaces. Adding the new resize for the volume or the filesystem will require implementing the interface, but no other changes in the cluster code itself.

Volume resizing first changes the EBS and the filesystem, and only afterwards is reflected in the Kubernetes "PersistentVolume" object. This is done deliberately to be able to check if the volume needs resizing by peeking at the Size of the PersistentVolume structure. We recheck, nevertheless, in the EBSVolumeResizer, whether the actual EBS volume size doesn't match the spec, since call to the AWS ModifyVolume is counted against the resize limit of once every 6 hours, even for those calls that shouldn't result in an actual resize (i.e. when the size matches the one for the running volume).

As a collateral, split the constants into multiple files, move the volume code into a separate file and fix minor issues related to the error reporting.
2017-06-06 13:53:27 +02:00
..
config Fix the golint, gosimple warnings 2017-05-18 17:38:54 +02:00
constants Implements EBS volume resizing #35. 2017-06-06 13:53:27 +02:00
filesystems Implements EBS volume resizing #35. 2017-06-06 13:53:27 +02:00
k8sutil Fix the golint, gosimple warnings 2017-05-18 17:38:54 +02:00
retryutil Fix error messages (#27) 2017-05-22 14:12:06 +02:00
teams Implements EBS volume resizing #35. 2017-06-06 13:53:27 +02:00
users Fix error messages (#27) 2017-05-22 14:12:06 +02:00
volumes Implements EBS volume resizing #35. 2017-06-06 13:53:27 +02:00
util.go fix password check in pguserpassword 2017-05-26 18:19:12 +02:00