[bitnami/postgresql] metrics.collectors applies to read replicas (#30133)

This commit is contained in:
dklenke
2024-11-04 08:24:24 +01:00
committed by GitHub
parent f5b7139c78
commit 696f113b68
3 changed files with 17 additions and 5 deletions

View File

@@ -1,8 +1,13 @@
# Changelog
## 16.1.0 (2024-10-29)
## 16.1.1 (2024-10-31)
* [bitnami/postgresql] Added support for `namespaceOverride` ([#30113](https://github.com/bitnami/charts/pull/30113))
* [bitnami/postgresql] metrics.collectors applies to read replicas ([#30133](https://github.com/bitnami/charts/pull/30133))
## 16.1.0 (2024-10-30)
* [bitnami/*] Remove wrong comment about imagePullPolicy (#30107) ([a51f9e4](https://github.com/bitnami/charts/commit/a51f9e4bb0fbf77199512d35de7ac8abe055d026)), closes [#30107](https://github.com/bitnami/charts/issues/30107)
* [bitnami/postgresql] Added support for `namespaceOverride` (#30113) ([4253372](https://github.com/bitnami/charts/commit/4253372e0b770e941c4894cdd7a904d3fdabeb19)), closes [#30113](https://github.com/bitnami/charts/issues/30113)
## <small>16.0.6 (2024-10-24)</small>

View File

@@ -35,4 +35,4 @@ maintainers:
name: postgresql
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql
version: 16.1.0
version: 16.1.1

View File

@@ -428,8 +428,15 @@ spec:
{{- if .Values.diagnosticMode.enabled }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }}
{{- else if .Values.metrics.customMetrics }}
args: [ "--extend.query-path", "/conf/custom-metrics.yaml" ]
{{- else if or .Values.metrics.customMetrics .Values.metrics.collectors }}
args:
{{- if .Values.metrics.customMetrics }}
- --extend.query-path
- /conf/custom-metrics.yaml
{{- end }}
{{- range $name, $enabled := .Values.metrics.collectors }}
- --{{ if not $enabled }}no-{{ end }}collector.{{ $name }}
{{- end }}
{{- end }}
env:
- name: DATA_SOURCE_URI