diff --git a/charts/cluster/README.md b/charts/cluster/README.md index babd61bd96..0658022ab9 100644 --- a/charts/cluster/README.md +++ b/charts/cluster/README.md @@ -179,6 +179,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentati | cluster.podSecurityContext | object | `{}` | Configure the Pod Security Context. See: https://cloudnative-pg.io/documentation/preview/security/ | | cluster.postgresGID | int | `-1` | The GID of the postgres user inside the image, defaults to 26 | | cluster.postgresUID | int | `-1` | The UID of the postgres user inside the image, defaults to 26 | +| cluster.postgresql.extensions | list | `[]` | List of [image volume extensions](https://cloudnative-pg.io/docs/1.29/imagevolume_extensions/) to load in the cluster pod | | cluster.postgresql.ldap | object | `{}` | PostgreSQL LDAP configuration (see https://cloudnative-pg.io/documentation/current/postgresql_conf/#ldap-configuration) | | cluster.postgresql.parameters | object | `{}` | PostgreSQL configuration options (postgresql.conf) | | cluster.postgresql.pg_hba | list | `[]` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) | diff --git a/charts/cluster/templates/NOTES.txt b/charts/cluster/templates/NOTES.txt index a0cc2fef3d..a0931b5e30 100644 --- a/charts/cluster/templates/NOTES.txt +++ b/charts/cluster/templates/NOTES.txt @@ -2,7 +2,7 @@ {{ fail ".Values.pooler has been deprecated. Use .Values.poolers instead." }} {{- end -}} -{{- if gt (omit .Values.cluster.postgresql "parameters" "synchronous" "pg_hba" "pg_ident" "syncReplicaElectionConstraint" "shared_preload_libraries" "ldap" "promotionTimeout" "enableAlterSystem" | keys | len) 0 -}} +{{- if gt (omit .Values.cluster.postgresql "parameters" "synchronous" "pg_hba" "pg_ident" "syncReplicaElectionConstraint" "shared_preload_libraries" "ldap" "promotionTimeout" "enableAlterSystem" "extensions" | keys | len) 0 -}} {{ fail ".Values.cluster.postgresql has been deprecated. Use .Values.cluster.postgresql.parameters instead." }} {{- end -}} diff --git a/charts/cluster/templates/cluster.yaml b/charts/cluster/templates/cluster.yaml index 4a17479773..68540548f9 100644 --- a/charts/cluster/templates/cluster.yaml +++ b/charts/cluster/templates/cluster.yaml @@ -97,6 +97,10 @@ spec: parameters: {{- toYaml . | nindent 6 }} {{- end }} + {{- with .Values.cluster.postgresql.extensions }} + extensions: + {{- toYaml . | nindent 6 }} + {{ end }} {{- if not (and (empty .Values.cluster.roles) (empty .Values.cluster.services)) }} managed: diff --git a/charts/cluster/values.schema.json b/charts/cluster/values.schema.json index 85645a49a7..6bc650a810 100644 --- a/charts/cluster/values.schema.json +++ b/charts/cluster/values.schema.json @@ -293,6 +293,9 @@ "postgresql": { "type": "object", "properties": { + "extensions": { + "type": "array" + }, "ldap": { "type": "object" }, diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml index 2c7e8b5c15..9a6df50ca8 100644 --- a/charts/cluster/values.yaml +++ b/charts/cluster/values.yaml @@ -367,6 +367,8 @@ cluster: # -- Lists of shared preload libraries to add to the default ones shared_preload_libraries: [] # - pgaudit + # -- List of [image volume extensions](https://cloudnative-pg.io/docs/1.29/imagevolume_extensions/) to load in the cluster pod + extensions: [] # -- PostgreSQL LDAP configuration (see https://cloudnative-pg.io/documentation/current/postgresql_conf/#ldap-configuration) ldap: {} # https://cloudnative-pg.io/documentation/current/postgresql_conf/#ldap-configuration