mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 20:39:00 +02:00
Address review input.
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ kubectl logs acid-minimal-cluster-0
|
||||
|
||||
## Unit tests with Mocks and K8s Fake API
|
||||
|
||||
When ever possible you should rely on leveraging proper mocks and K8s fake client that allows full fledged testing of K8s objects in your unit tests.
|
||||
Whenever possible you should rely on leveraging proper mocks and K8s fake client that allows full fledged testing of K8s objects in your unit tests.
|
||||
|
||||
To enable mocks, a code annotation is needed:
|
||||
[Mock code gen annotation](https://github.com/zalando/postgres-operator/blob/master/pkg/util/volumes/volumes.go#L3)
|
||||
|
||||
@@ -373,12 +373,13 @@ configuration they are grouped under the `kubernetes` key.
|
||||
possible value is `parallel`.
|
||||
|
||||
* **storage_resize_mode**
|
||||
defines how operator handels the difference between requested volume size and
|
||||
actual size. Available options are: ebs - tries to resize EBS volume, pvc -
|
||||
changes PVC definition, off - disables resize of the volumes. And "mixed" mode.
|
||||
Where mixed mode is needed to support AWS EBS gp3 volumes, to adjust IOPS and Throughput.
|
||||
It relies on pvc resize to deal with file system extension. Default is "pvc".
|
||||
When using OpenShift please use one of the other available options.
|
||||
defines how operator handles the difference between the requested volume size and
|
||||
the actual size. Available options are:
|
||||
1. `ebs` : operator resizes EBS volumes directly and executes `resizefs` within a pod
|
||||
2. `pvc` : operator only changes PVC definition
|
||||
3. `off` : disables resize of the volumes.
|
||||
4. `mixed` :operator uses AWS API to adjust size, throughput, and IOPS, and calls pvc change for file system resize
|
||||
Default is "pvc".
|
||||
|
||||
## Kubernetes resource requests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user