You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 639717b
Browse filesBrowse the repository at this point in the historyBrowse files
Matthieu
committed
feat(postgres): add postgis image flavor
Introduce a `flavor: postgresql | postgis` enum on the postgres app.
`postgis` swaps the CNPG image to `ghcr.io/cloudnative-pg/postgis`,
which ships PostGIS and companion extensions (postgis_topology,
postgis_raster, pgrouting, address_standardizer) precompiled, so
tenants can activate them per database via
`databases.<name>.extensions`. The cluster and the post-install init
Job share a single `postgres.imageName` helper to stay
wire-compatible. Tag mapping for the postgis variant lives in
`files/postgis-versions.yaml` (v13-v17 covered; v18 returns a clear
error at install).
Signed-off-by: Matthieu <[email protected]>
| `replicas` | Number of Postgres replicas. | `int` | `2` |
168
-
| `resources` | Explicit CPU and memory configuration for each PostgreSQL replica. When omitted, the preset defined in `resourcesPreset` is applied. | `object` | `{}` |
169
-
| `resources.cpu` | CPU available to each replica. | `quantity` | `""` |
170
-
| `resources.memory` | Memory (RAM) available to each replica. | `quantity` | `""` |
171
-
| `resourcesPreset` | Default sizing preset used when `resources` is omitted. | `string` | `t1.micro` |
172
-
| `size` | Persistent Volume Claim size available for application data. | `quantity` | `10Gi` |
173
-
| `storageClass` | StorageClass used to store the data. | `string` | `""` |
174
-
| `external` | Enable external access from outside the cluster. | `bool` | `false` |
175
-
| `version` | PostgreSQL major version to deploy | `string` | `v18` |
| `replicas` | Number of Postgres replicas. | `int` | `2` |
195
+
| `resources` | Explicit CPU and memory configuration for each PostgreSQL replica. When omitted, the preset defined in `resourcesPreset` is applied. | `object` | `{}` |
196
+
| `resources.cpu` | CPU available to each replica. | `quantity` | `""` |
197
+
| `resources.memory` | Memory (RAM) available to each replica. | `quantity` | `""` |
198
+
| `resourcesPreset` | Default sizing preset used when `resources` is omitted. | `string` | `t1.micro` |
199
+
| `size` | Persistent Volume Claim size available for application data. | `quantity` | `10Gi` |
200
+
| `storageClass` | StorageClass used to store the data. | `string` | `""` |
201
+
| `external` | Enable external access from outside the cluster. | `bool` | `false` |
202
+
| `version` | PostgreSQL major version to deploy | `string` | `v18` |
203
+
| `flavor` | PostgreSQL image flavor. `postgresql` (default) uses the standard CloudNativePG image. `postgis` switches to the CloudNativePG PostGIS image, which ships PostGIS and companion extensions (postgis_topology, postgis_raster, pgrouting, address_standardizer) precompiled. Declare the needed extensions in `databases.<name>.extensions` to enable them per database. | `string` | `postgresql` |
{{- printf`PostgreSQL version %s is not supported by the postgis flavor, allowed versions are %s`$.Values.version (keys $versionMap| sortAlpha) | fail }}
Copy file name to clipboardExpand all lines: packages/apps/postgres/values.schema.json
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,15 @@
131
131
"v13"
132
132
]
133
133
},
134
+
"flavor": {
135
+
"description": "PostgreSQL image flavor. `postgresql` (default) uses the standard CloudNativePG image. `postgis` switches to the CloudNativePG PostGIS image, which ships PostGIS and companion extensions (postgis_topology, postgis_raster, pgrouting, address_standardizer) precompiled. Declare the needed extensions in `databases.\u003cname\u003e.extensions` to enable them per database.",
136
+
"type": "string",
137
+
"default": "postgresql",
138
+
"enum": [
139
+
"postgresql",
140
+
"postgis"
141
+
]
142
+
},
134
143
"postgresql": {
135
144
"description": "PostgreSQL server configuration.",
Copy file name to clipboardExpand all lines: packages/apps/postgres/values.yaml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,14 @@ external: false
85
85
## @param {Version} version - PostgreSQL major version to deploy
86
86
version: v18
87
87
88
+
##
89
+
## @enum {string} Flavor
90
+
## @value postgresql
91
+
## @value postgis
92
+
93
+
## @param {Flavor} flavor - PostgreSQL image flavor. `postgresql` (default) uses the standard CloudNativePG image. `postgis` switches to the CloudNativePG PostGIS image, which ships PostGIS and companion extensions (postgis_topology, postgis_raster, pgrouting, address_standardizer) precompiled. Declare the needed extensions in `databases.<name>.extensions` to enable them per database.
0 commit comments