diff --git a/charts/cluster/README.md b/charts/cluster/README.md index b3d37062ad..4b1e4f9f00 100644 --- a/charts/cluster/README.md +++ b/charts/cluster/README.md @@ -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 | diff --git a/charts/cluster/templates/tests/ping.yaml b/charts/cluster/templates/tests/ping.yaml index 46d57a3051..fd32119424 100644 --- a/charts/cluster/templates/tests/ping.yaml +++ b/charts/cluster/templates/tests/ping.yaml @@ -20,7 +20,7 @@ spec: restartPolicy: Never containers: - name: alpine - image: alpine:3.17 + image: "{{ .Values.test.imageName }}" command: [ 'sh' ] env: - name: PGUSER diff --git a/charts/cluster/values.schema.json b/charts/cluster/values.schema.json index cf581a8577..f0f6f99e13 100644 --- a/charts/cluster/values.schema.json +++ b/charts/cluster/values.schema.json @@ -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`", diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml index a85aa39f9b..cd124a3fdc 100644 --- a/charts/cluster/values.yaml +++ b/charts/cluster/values.yaml @@ -761,3 +761,6 @@ poolers: [] # # -- Custom PgBouncer deployment template. # # Use to override image, specify resources, etc. # template: {} + +test: + imageName: alpine:3.17 \ No newline at end of file