diff --git a/charts/pg-db/README.md b/charts/pg-db/README.md index 6322012c..4e56a7fb 100644 --- a/charts/pg-db/README.md +++ b/charts/pg-db/README.md @@ -39,6 +39,7 @@ The chart can be customized using the following configurable parameters: | `repository` | PostgreSQL container image repository | `docker.io/percona/percona-distribution-postgresql` | | `image` | Postgres image | `docker.io/percona/percona-distribution-postgresql:17.7-2` | | `imagePullPolicy` | image Pull Policy | `Always` | +| `imagePullSecrets` | Image Pull Secrets | `[]` | | `port` | PostgreSQL port | `5432` | | `postgresVersion` | PostgreSQL container version tag | `16` | | `pause` | Stop PostgreSQL Database safely | `false` | diff --git a/charts/pg-db/templates/cluster.yaml b/charts/pg-db/templates/cluster.yaml index 9e472906..a43de1ae 100644 --- a/charts/pg-db/templates/cluster.yaml +++ b/charts/pg-db/templates/cluster.yaml @@ -31,6 +31,10 @@ spec: {{- end }} image: {{ .Values.image }} imagePullPolicy: {{ .Values.imagePullPolicy | default "Always" }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 4 }} + {{- end }} port: {{ default 5432 .Values.port }} postgresVersion: {{ .Values.postgresVersion }} standby: {{- .Values.standby | toYaml | nindent 4 }} diff --git a/charts/pg-db/values.yaml b/charts/pg-db/values.yaml index 1d02c8b2..3987c76a 100644 --- a/charts/pg-db/values.yaml +++ b/charts/pg-db/values.yaml @@ -47,6 +47,7 @@ crVersion: 2.9.0 repository: docker.io/percona/percona-distribution-postgresql image: docker.io/percona/percona-distribution-postgresql:17.7-2 imagePullPolicy: Always +imagePullSecrets: [] postgresVersion: 17 # clusterServiceDNSSuffix: cluster.local # port: 5432