Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ Kubernetes: `>=1.29.0-0`
| replica.primary | string | `""` | Primary defines which Cluster is defined to be the primary in the distributed PostgreSQL cluster, based on the topology specified in externalClusters |
| replica.promotionToken | string | `""` | A demotion token generated by an external cluster used to check if the promotion requirements are met. |
| replica.self | string | `""` | Defines the name of this cluster. It is used to determine if this is a primary or a replica cluster, comparing it with primary. Leave empty by default. |
| test.imageName | string | `"alpine:3.17"` | |
| type | string | `"postgresql"` | Type of the CNPG database. Available types: * `postgresql` * `postgis` * `timescaledb` |
| version.postgis | string | `"3.4"` | If using PostGIS, specify the version |
| version.postgresql | string | `"16"` | PostgreSQL major version to use |
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster/templates/tests/ping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
restartPolicy: Never
containers:
- name: alpine
image: alpine:3.17
image: "{{ .Values.test.imageName }}"
command: [ 'sh' ]
env:
- name: PGUSER
Expand Down
10 changes: 10 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,16 @@
"required": [],
"type": "object"
},
"test": {
"properties": {
"imageName": {
"default": "alpine:3.17",
"type": "string"
}
},
"required": [],
"type": "object"
},
"type": {
"default": "postgresql",
"description": "Type of the CNPG database. Available types:\n* `postgresql`\n* `postgis`\n* `timescaledb`",
Expand Down
3 changes: 3 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -761,3 +761,6 @@ poolers: []
# # -- Custom PgBouncer deployment template.
# # Use to override image, specify resources, etc.
# template: {}

test:
imageName: alpine:3.17