Skip to content

Commit 65c61f2

Browse files
Merge pull request #306 from anynines/develop
Merge Develop into Main for Release v1.1.0
2 parents 8e5b8bf + 648e4dd commit 65c61f2

21 files changed

+797
-975
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to the a9s Dataservices on Kubernetes will be documented
44
here, the format is based on [Keep a
55
Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [1.1.0] - 2024-06-05
8+
9+
### Added
10+
11+
* Added support for installing/uninstalling PostgreSQL extensions via the extensions field,
12+
including postgis, uuid-ossp, ltree, pgcrypto, pg_stat_statements, fuzzystrmatch, pg_trgm, and
13+
hstore.
14+
15+
### Fixed
16+
17+
* Fix PostgreSQL restart logic after user parameter updates.
18+
19+
### Updated
20+
21+
* The backup_agent has been bumped to the latest version and now includes buildx support.
22+
723
## [1.0.0] - 2024-03-15
824

925
### Updated

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @abdulhaseeb3 @mkfdoherty @lhaendler
1+
* @abdulhaseeb3 @mkfdoherty @lhaendler @iliasmavridis
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: v1
22
kind: Namespace
33
metadata:
4-
name: a8s-system
5-
4+
labels:
5+
control-plane: controller-manager
6+
name: a8s-system

deploy/a8s/manifests/postgresql-images.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ data:
77
kind: ConfigMap
88
metadata:
99
name: postgresql-images
10-
namespace: a8s-system
11-
10+
namespace: a8s-system

deploy/a8s/manifests/postgresql-operator.yaml

Lines changed: 556 additions & 656 deletions
Large diffs are not rendered by default.

docs/application-developers/advanced_configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ spec:
122122
requests:
123123
cpu: 100m
124124
limits:
125-
memory: 100Mi
125+
memory: 200Mi
126126
schedulingConstraints:
127127
affinity:
128128
podAntiAffinity:
@@ -248,7 +248,7 @@ spec:
248248
requests:
249249
cpu: 100m
250250
limits:
251-
memory: 100Mi
251+
memory: 200Mi
252252
schedulingConstraints:
253253
affinity:
254254
podAntiAffinity:
@@ -389,7 +389,7 @@ spec:
389389
requests:
390390
cpu: 100m
391391
limits:
392-
memory: 100Mi
392+
memory: 200Mi
393393
schedulingConstraints:
394394
affinity:
395395
nodeAffinity:

docs/application-developers/api-documentation/postgresql-operator/v1beta3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ _Appears in:_
9595
| `volumeSize` _Quantity_ | VolumeSize sets the size of the persistent volume of the PostgreSQL instance, the minimum size is 0.5Gi. The size is to be specified as a plain integer or as a fixed-point number using one of these suffixes: E, P, T, G, M, K, corresponding to kilo-, mega-, gigabytes, etc. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki, corresponding to kibi-, mebi-, gibibytes, etc. For example a value of "0.5Gi" corresponds to an instance with a persistent volume of 0.5 gibibytes. |
9696
| `parameters` _[PostgresqlParameters](#postgresqlparameters)_ | |
9797
| `schedulingConstraints` _[PostgresqlSchedulingConstraints](#postgresqlschedulingconstraints)_ | SchedulingConstraints contains subfields that affect how the Pods of the Postgresql instance will be scheduled onto Kubernetes cluster nodes. The subfields map directly to Kubernetes API primitives such as node taints, tolerations, affinity and (anti)affinity. See the documentation of each subfield for more details. Together, the subfields of SchedulingConstraints allow you to express constraints such as "Pods of this Postgresql instance MUST be scheduled to different availability zones", or "Pods of this Postgresql instance SHOULD preferably (but not mandatorily) be scheduled to nodes that have a SSD", and many more. As a warning, the subfields of SchedulingConstraints can interfere with each other, so when you set one of them you should consider how it will interact with the values that you set for other subfields. |
98-
| `extensions` _string array_ | Extensions defines a list of PostgreSQL extensions which should be installed. Installing means that the binaries and libraries of the defined extensions are moved to the PostgreSQL extension directory. The extensions are NOT loaded by default (i.e. by using the PostgreSQL "CREATE EXTENSION" command). Updating the list of extensions will cause a rolling update of the PostgreSQL instance. |
98+
| `extensions` _string array_ | Extensions defines a list of PostgreSQL extensions which should be installed. Extensions can be installed from the supported list of extensions. The currently supported extensions are: postgis, uuid-ossp, ltree, pgcrypto, pg_stat_statements, fuzzystrmatch, pg_trgm, hstore. |
9999
| `enableReadOnlyService` _boolean_ | EnableReadOnlyService enables the creation of a read-only service. A read-only service is meant for read operations and allows for load-balancing across different PostgreSQL cluster members. Stale reads are possible when reading from this service. By default this feature is disabled. |
100100
| `readOnlyTargetNodes` _string_ | ReadOnlyTargetNodes specifies the target PostgreSQL cluster members which the read-only service points to. "replicas" means that only the PostgreSQL cluster replicas are used for the read-only service. "all" means that the read-only service points to all PostgreSQL cluster members. By default this feature only points to the PostgreSQL cluster replicas. |
101101
| `expose` _[ExposeOption](#exposeoption)_ | Expose determines where (and how) the DSI can be accessed from. Currently supported values are - "Internal": the DSI will be accessible only from inside the K8s cluster - "LoadBalancer": the DSI will receive dedicated load balancers with reachable IP addresses that can be used from external locations . This is only supported on K8s clusters that support external load balancers. This field applies to all the services backed by the DSI, that is, both the master-only one and the read-only one; the "LoadBalancer" value means that each service will get a dedicated LoadBalancer. |

docs/application-developers/usage_overview.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ When you want to delete a `Restore`, run:
233233
kubectl delete restore <restore-name>
234234
```
235235

236+
## Install/Uninstall PostgreSQL Extensions
237+
238+
PostgreSQL is designed to be easily extensible. For this reason, extensions loaded into the database can function just like features that are built in. Application developers can enable extensions by adding the desired extensions to the extensions field as a list. Likewise, extensions can be uninstalled by removing them from the extensions list. Extensions can be installed on new instances as well as on running instances.
239+
240+
WARNING: Extensions cannot be removed if they have dependencies on other objects in the database. If you are using features of an extension in your database tables, the removal operation will not succeed. Users must remove these blocking dependencies for the extension to be cleanly removed from the database. The PostgreSQL operator will not forcibly remove extensions with dependencies to avoid unexpected data loss.
241+
242+
The extensions currently supported are: postgis, uuid-ossp, ltree, pgcrypto, pg_stat_statements, fuzzystrmatch, pg_trgm, hstore.
243+
244+
See [examples/postgresql-extensions-instance.yaml](/examples/postgresql-extensions-instance.yaml) for an example manifest containing a list of desired extensions to be installed.
245+
236246
## Visualize the Logs of the PostgreSQL Instance
237247

238248
Application developers should be aware that all pods with the label field `app`

docs/current_limitations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959

6060
to force the deletion.
6161

62+
## PostgreSQL Extensions
63+
64+
- Status on extension state, required for informing user of unresolvable dependencies on extensions that block their removal.
65+
6266
## Service Bindings
6367

6468
- Custom parameters for configuring the permissions are not supported.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: postgresql.anynines.com/v1beta3
2+
kind: Postgresql
3+
metadata:
4+
name: sample-pg-cluster
5+
spec:
6+
extensions:
7+
- postgis
8+
- uuid-ossp
9+
- ltree
10+
- pgcrypto
11+
- pg_stat_statements
12+
- fuzzystrmatch
13+
- pg_trgm
14+
- hstore
15+
replicas: 3
16+
volumeSize: 1Gi
17+
version: 14
18+
resources:
19+
requests:
20+
cpu: 100m
21+
limits:
22+
memory: 200Mi

0 commit comments

Comments
 (0)