mirror of
https://github.com/bitnami/charts.git
synced 2026-02-20 03:58:02 +08:00
[bitnami/postgresql] Allow custom role name for postgresql (#11626)
* [bitnami/postgresql] Allow custom role name for postgresql Signed-off-by: Nobi <nobi@nobidev.com> * Update README.md Signed-off-by: Nobi <nobi@nobidev.com> Signed-off-by: Nobi <nobi@nobidev.com>
This commit is contained in:
@@ -26,4 +26,4 @@ name: postgresql
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/postgresql
|
||||
- https://www.postgresql.org/
|
||||
version: 11.6.26
|
||||
version: 11.7.0
|
||||
|
||||
@@ -161,6 +161,7 @@ kubectl delete pvc -l release=my-release
|
||||
|
||||
| Name | Description | Value |
|
||||
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------- |
|
||||
| `primary.name` | Name of the primary database (eg primary, master, leader, ...) | `primary` |
|
||||
| `primary.configuration` | PostgreSQL Primary main configuration to be injected as ConfigMap | `""` |
|
||||
| `primary.pgHbaConfiguration` | PostgreSQL Primary client authentication configuration | `""` |
|
||||
| `primary.existingConfigmap` | Name of an existing ConfigMap with PostgreSQL Primary configuration | `""` |
|
||||
@@ -263,6 +264,7 @@ kubectl delete pvc -l release=my-release
|
||||
|
||||
| Name | Description | Value |
|
||||
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------- |
|
||||
| `readReplicas.name` | Name of the read replicas database (eg secondary, slave, ...) | `read` |
|
||||
| `readReplicas.replicaCount` | Number of PostgreSQL read only replicas | `1` |
|
||||
| `readReplicas.extendedConfiguration` | Extended PostgreSQL read only replicas configuration (appended to main or default configuration) | `""` |
|
||||
| `readReplicas.extraEnvVars` | Array with extra environment variables to add to PostgreSQL read only nodes | `[]` |
|
||||
|
||||
@@ -6,7 +6,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||
*/}}
|
||||
{{- define "postgresql.primary.fullname" -}}
|
||||
{{- if eq .Values.architecture "replication" }}
|
||||
{{- printf "%s-primary" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" -}}
|
||||
{{- printf "%s-%s" (include "common.names.fullname" .) .Values.primary.name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- include "common.names.fullname" . -}}
|
||||
{{- end -}}
|
||||
@@ -17,7 +17,7 @@ Create a default fully qualified app name for PostgreSQL read-only replicas obje
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
*/}}
|
||||
{{- define "postgresql.readReplica.fullname" -}}
|
||||
{{- printf "%s-read" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" -}}
|
||||
{{- printf "%s-%s" (include "common.names.fullname" .) .Values.readReplicas.name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
|
||||
@@ -284,6 +284,9 @@ tls:
|
||||
## @section PostgreSQL Primary parameters
|
||||
##
|
||||
primary:
|
||||
## @param primary.name Name of the primary database (eg primary, master, leader, ...)
|
||||
##
|
||||
name: primary
|
||||
## @param primary.configuration PostgreSQL Primary main configuration to be injected as ConfigMap
|
||||
## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
|
||||
##
|
||||
@@ -671,6 +674,9 @@ primary:
|
||||
## @section PostgreSQL read only replica parameters (only used when `architecture` is set to `replication`)
|
||||
##
|
||||
readReplicas:
|
||||
## @param readReplicas.name Name of the read replicas database (eg secondary, slave, ...)
|
||||
##
|
||||
name: read
|
||||
## @param readReplicas.replicaCount Number of PostgreSQL read only replicas
|
||||
##
|
||||
replicaCount: 1
|
||||
|
||||
Reference in New Issue
Block a user