Skip to content

Commit 1605a4c

Browse files
chore(chart): low-priority cleanup and consistency fixes (#183) (#826)
Signed-off-by: Philippe Noël <philippemnoel@gmail.com> Co-authored-by: Itay Grudev <itay@verito.digital>
1 parent 9c07cbf commit 1605a4c

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
@@ -507,7 +507,7 @@ backups:
507507
retentionPolicy: "30d"
508508

509509
replica:
510-
# -- 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.
510+
# -- 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.
511511
self: ""
512512
# -- Primary defines which Cluster is defined to be the primary in the distributed PostgreSQL cluster, based on the topology specified in externalClusters
513513
primary: ""
@@ -516,7 +516,7 @@ replica:
516516
# -- 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.
517517
minApplyDelay: ""
518518
bootstrap:
519-
# -- One of `object_store` or `pg_basebackup`. Method to use for bootstrap.
519+
# -- One of `object_store` or `pg_basebackup`. Method to use for bootstrap.
520520
source: ""
521521
# -- Name of the database used by the application
522522
database: ""

0 commit comments

Comments
 (0)