Skip to content

Commit ae42efe

Browse files
committed
chore(chart): low-priority cleanup and consistency fixes (#183)
Signed-off-by: Philippe Noël <philippemnoel@gmail.com>
1 parent b1d64c2 commit ae42efe

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

charts/cluster/examples/custom-queries.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cluster:
88
customQueries:
99
- name: "pg_cache_hit"
1010
query: |
11-
SELECT
11+
SELECT
1212
current_database() as datname,
1313
sum(heap_blks_hit) / (sum(heap_blks_hit) + sum(heap_blks_read)) as ratio
1414
FROM pg_statio_user_tables;

charts/cluster/templates/scheduled-backups.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
apiVersion: postgresql.cnpg.io/v1
66
kind: ScheduledBackup
77
metadata:
8-
name: {{ include "cluster.fullname" $context }}-{{ .name }}
9-
namespace: {{ include "cluster.namespace" $ }}
10-
labels: {{ include "cluster.labels" $context | nindent 4 }}
8+
name: {{ include "cluster.fullname" $context }}-{{ .name }}
9+
namespace: {{ include "cluster.namespace" $context }}
10+
labels:
11+
{{- include "cluster.labels" $context | nindent 4 }}
1112
spec:
1213
immediate: true
1314
schedule: {{ .schedule | quote }}

charts/cluster/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ backups:
490490
retentionPolicy: "30d"
491491

492492
replica:
493-
# -- 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.
493+
# -- 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.
494494
self: ""
495495
# -- Primary defines which Cluster is defined to be the primary in the distributed PostgreSQL cluster, based on the topology specified in externalClusters
496496
primary: ""
@@ -499,7 +499,7 @@ replica:
499499
# -- 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.
500500
minApplyDelay: ""
501501
bootstrap:
502-
# -- One of `object_store` or `pg_basebackup`. Method to use for bootstrap.
502+
# -- One of `object_store` or `pg_basebackup`. Method to use for bootstrap.
503503
source: ""
504504
# -- Name of the database used by the application
505505
database: ""

0 commit comments

Comments
 (0)