Skip to content

Commit

Permalink
Make use of wal-g-exporter configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep committed Nov 15, 2024
1 parent c5be822 commit f338941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/postgreslet/templates/configmap-sidecars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ apiVersion: v1
data:
postgres-exporter-service-port: {{ .Values.sidecars.exporter.servicePort | quote }}
postgres-exporter-service-target-port: {{ .Values.sidecars.exporter.containerPort | quote }}
{{- if .Values.sidecars.walGExporter.enabled }}
wal-g-exporter-service-port: {{ .Values.sidecars.walGExporter.servicePort | quote }}
wal-g-exporter-service-target-port: {{ .Values.sidecars.walGExporter.containerPort | quote }}
{{- else }}
{{- if .Values.sidecars.exporter.enableStatementsQuery }}
queries.yaml: {{ printf "%s\n%s" .Values.sidecars.exporter.queries .Values.sidecars.exporter.queriesStatements | b64enc }}
{{- else }}
Expand Down
1 change: 1 addition & 0 deletions charts/postgreslet/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data:
ENABLE_STANDBY_LEADER_SELECTOR: {{ .Values.postgreslet.enableStandbyLeaderSelector | quote }}
ENABLE_SUPERUSER_FOR_DBO: {{ .Values.postgreslet.enableSuperuserforDBO | quote }}
ENABLE_WALG_ENCRYPTION: {{ .Values.postgreslet.enableWalGEncryption | quote }}
ENABLE_WAL_G_EXPORTER: {{ .Values.sidecars.walGExporter.enabled | quote }}
ETCD_BACKUP_SECRET_NAME: {{ .Values.postgreslet.etcdBackupSecretName | quote }}
{{- if .Values.postgreslet.etcdBackupSidecarImage }}
ETCD_BACKUP_SIDECAR_IMAGE: {{ .Values.postgreslet.etcdBackupSidecarImage | quote }}
Expand Down

0 comments on commit f338941

Please sign in to comment.