Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/cluster/examples/custom-queries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cluster:
customQueries:
- name: "pg_cache_hit"
query: |
SELECT
SELECT
current_database() as datname,
sum(heap_blks_hit) / (sum(heap_blks_hit) + sum(heap_blks_read)) as ratio
FROM pg_statio_user_tables;
Expand Down
7 changes: 4 additions & 3 deletions charts/cluster/templates/scheduled-backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: {{ include "cluster.fullname" $context }}-{{ .name }}
namespace: {{ include "cluster.namespace" $ }}
labels: {{ include "cluster.labels" $context | nindent 4 }}
name: {{ include "cluster.fullname" $context }}-{{ .name }}
namespace: {{ include "cluster.namespace" $context }}
labels:
{{- include "cluster.labels" $context | nindent 4 }}
spec:
immediate: true
schedule: {{ .schedule | quote }}
Expand Down
4 changes: 2 additions & 2 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ backups:
retentionPolicy: "30d"

replica:
# -- Defines the name of this cluster. It is used to determine if this is a primary or a replica cluster, comparing it with primary. Leave empty by default.
# -- Defines the name of this cluster. It is used to determine if this is a primary or a replica cluster, comparing it with primary. Leave empty by default.
self: ""
# -- Primary defines which Cluster is defined to be the primary in the distributed PostgreSQL cluster, based on the topology specified in externalClusters
primary: ""
Expand All @@ -499,7 +499,7 @@ replica:
# -- When replica mode is enabled, this parameter allows you to replay transactions only when the system time is at least the configured time past the commit time. This provides an opportunity to correct data loss errors. Note that when this parameter is set, a promotion token cannot be used.
minApplyDelay: ""
bootstrap:
# -- One of `object_store` or `pg_basebackup`. Method to use for bootstrap.
# -- One of `object_store` or `pg_basebackup`. Method to use for bootstrap.
source: ""
# -- Name of the database used by the application
database: ""
Expand Down