Skip to content

Commit 212e12c

Browse files
author
TheCodingSheikh
committed
feat: update postgrescluster chart
1 parent 90dc264 commit 212e12c

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

charts/postgrescluster/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: postgrescluster
33
description: A Helm chart for Kubernetes
44
type: application
55
# The version below should match the version on the PostgresCluster CRD
6-
version: 5.7.3
7-
appVersion: 5.7.3
6+
version: 5.7.4
7+
appVersion: 5.7.4

charts/postgrescluster/templates/postgres.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,26 @@ spec:
185185
{{ toYaml .Values.monitoringConfig | indent 8 }}
186186
{{- end }}
187187
{{- end }}
188+
{{- if .Values.instrumentation }}
189+
instrumentation:
190+
config:
191+
{{- if .Values.instrumentationConfig }}
192+
{{ toYaml .Values.instrumentationConfig | indent 6 }}
193+
{{- end }}
194+
image: {{ default "" .Values.instrumentationImage | quote }}
195+
logs:
196+
{{- if .Values.instrumentationLogs }}
197+
{{ toYaml .Values.instrumentationLogs | indent 6 }}
198+
{{- end }}
199+
metrics:
200+
{{- if .Values.instrumentationMetrics }}
201+
{{ toYaml .Values.instrumentationMetrics | indent 6 }}
202+
{{- end }}
203+
resources:
204+
{{- if .Values.instrumentationResources }}
205+
{{ toYaml .Values.instrumentationResources | indent 6 }}
206+
{{- end }}
207+
{{- end }}
188208
{{- if .Values.shutdown }}
189209
shutdown: true
190210
{{- end }}

charts/postgrescluster/values.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ postgresVersion: 17
3939
# below.
4040
# monitoring: false
4141

42+
# instrumentation enables the ability to monitor the Postgres cluster through an
43+
# OpenTelemetry collector. This defaults to the value below.
44+
# This feature is currently behind the feature gates OpenTelemetryLogs and
45+
# OpenTelemetryMetrics; at least one of these feature gates must be turned
46+
# on for `instrumentation` to be turned on.
47+
# instrumentation: false
48+
4249
###################
4350
# Image Overrides #
4451
###################
@@ -47,19 +54,19 @@ postgresVersion: 17
4754
# below value. "postgresVersion" needs to match the version of Postgres that is
4855
# used here. If using the GIS-enabled Postgres image, you need to ensure
4956
# "postGISVersion" matches the version of PostGIS used.
50-
# imagePostgres: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-17.2-2
57+
# imagePostgres: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-17.4-0
5158

5259
# imagePgBackRest is the pgBackRest backup utility image. This defaults to the
5360
# below value.
54-
# imagePgBackRest: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.54.1-0
61+
# imagePgBackRest: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.54.1-1
5562

5663
# imagePgBouncer is the image for the PgBouncer connection pooler. This defaults
5764
# to the below value.
58-
# imagePgBouncer: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.23-3
65+
# imagePgBouncer: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.23-4
5966

6067
# imageExporter is the image name for the exporter used as a part of monitoring.
6168
# This defaults to the value below.
62-
# imageExporter: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.16.0-0
69+
# imageExporter: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.16.0-1
6370

6471
###########################
6572
# Basic Postgres Settings #
@@ -278,6 +285,16 @@ postgresVersion: 17
278285
# "monitoring" setting.
279286
# monitoringConfig: {}
280287

288+
# The following "instrumentation_" fields will set the specified parts of the instrumentation
289+
# spec. To enable instrumentation, you need to set the "instrumentation" setting to "true".
290+
# This feature is currently behind the feature gates OpenTelemetryMetrics and OpenTelemetryLogs.
291+
292+
# instrumentationConfig: {}
293+
# instrumentationImage: ""
294+
# instrumentationLogs: {}
295+
# instrumentationMetrics: {}
296+
# instrumentationResources: {}
297+
281298
#######################
282299
# Kubernetes Settings #
283300
#######################

0 commit comments

Comments
 (0)