Skip to content

Commit

Permalink
[stable/postgresql] Improve readiness probe (helm#14370)
Browse files Browse the repository at this point in the history
* [stable/postgresql] Improve readiness probe

Signed-off-by: tompizmor <[email protected]>

* Bump chart version

Signed-off-by: tompizmor <[email protected]>

* update flag path for readiness probe

Signed-off-by: tompizmor <[email protected]>

* Use proper postgres tag

Signed-off-by: tompizmor <[email protected]>
  • Loading branch information
tompizmor authored and k8s-ci-robot committed Jun 3, 2019
1 parent 530aca6 commit 0fff0f9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stable/postgresql/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: postgresql
version: 5.2.2
version: 5.2.3
appVersion: 11.3.0
description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
Expand Down
4 changes: 2 additions & 2 deletions stable/postgresql/templates/statefulset-slaves.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ spec:
- sh
- -c
{{- if (include "postgresql.database" .) }}
- exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }}
- pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} && [ -f /opt/bitnami/postgresql/tmp/.initialized ]
{{- else }}
- exec pg_isready -U {{ include "postgresql.username" . | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }}
- pg_isready -U {{ include "postgresql.username" . | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} && [ -f /opt/bitnami/postgresql/tmp/.initialized ]
{{- end }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
Expand Down
4 changes: 2 additions & 2 deletions stable/postgresql/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ spec:
- sh
- -c
{{- if (include "postgresql.database" .) }}
- exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }}
- pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} && [ -f /opt/bitnami/postgresql/tmp/.initialized ]
{{- else }}
- exec pg_isready -U {{ include "postgresql.username" . | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }}
- pg_isready -U {{ include "postgresql.username" . | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} && [ -f /opt/bitnami/postgresql/tmp/.initialized ]
{{- end }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
Expand Down
2 changes: 1 addition & 1 deletion stable/postgresql/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ global:
image:
registry: docker.io
repository: bitnami/postgresql
tag: 11.3.0-debian-9-r27
tag: 11.3.0-debian-9-r28
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down
2 changes: 1 addition & 1 deletion stable/postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ global:
image:
registry: docker.io
repository: bitnami/postgresql
tag: 11.3.0-debian-9-r27
tag: 11.3.0-debian-9-r28
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down

0 comments on commit 0fff0f9

Please sign in to comment.