Skip to content

Commit

Permalink
Bug Fix: Inproper yaml formatting and added debug output to the test
Browse files Browse the repository at this point in the history
Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Sep 9, 2024
1 parent 9cea0ff commit 28f7f0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ spec:
{{- if eq .Values.type "timescaledb" }}
- timescaledb
{{- end }}
{{- toYaml .Values.cluster.postgresql.shared_preload_libraries | nindent 6 }}
{{- with .Values.cluster.postgresql.shared_preload_libraries }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.cluster.postgresql }}
parameters:
{{- toYaml .parameters | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ spec:
- describe:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
- podLogs:
selector: cnpg.io/cluster=timescale-cluster
- name: Verify timescale extensions are installed
timeouts:
apply: 1s
Expand Down Expand Up @@ -101,6 +103,12 @@ spec:
recovery-backup-pitr ../../
- assert:
file: ./07-recovery_backup_pitr_cluster-assert.yaml
catch:
- describe:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
- podLogs:
selector: cnpg.io/cluster=recovery-backup-pitr-cluster
- name: Verify the pre-backup data on the recovery cluster exists but not the post-backup data
try:
- apply:
Expand Down

0 comments on commit 28f7f0a

Please sign in to comment.