Skip to content

Commit adfa4e5

Browse files
authored
feat(balius): add podTargetLabels and configurable podMetricsEndpoints (#358)
- Add podTargetLabels field to PodMonitor spec - Make podMetricsEndpoints configurable via values (with default fallback) - Bump chart version to 0.0.8 Signed-off-by: wcatz <waynecataldo@gmail.com>
1 parent 9007221 commit adfa4e5

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

charts/balius/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: balius
33
description: Balius server
4-
version: 0.0.7
4+
version: 0.0.8
55
appVersion: "0.0.1"
66

77
sources:

charts/balius/templates/podmonitor.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ metadata:
1111
spec:
1212
selector:
1313
matchLabels: {{- include "balius.selectorLabels" . | nindent 6 }}
14+
{{- with .Values.balius.podmonitor.podTargetLabels }}
15+
podTargetLabels:
16+
{{- toYaml . | nindent 4 }}
17+
{{- end }}
1418
podMetricsEndpoints:
19+
{{- if .Values.balius.podmonitor.podMetricsEndpoints }}
20+
{{- toYaml .Values.balius.podmonitor.podMetricsEndpoints | nindent 4 }}
21+
{{- else }}
1522
- port: metrics
1623
path: /metrics
24+
{{- end }}
1725
{{- end }}

charts/balius/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ balius:
3838
podmonitor:
3939
enabled: false
4040
labels: {}
41+
podTargetLabels: []
42+
podMetricsEndpoints: []
4143
# --- Postgres Credentials ---
4244
postgres:
4345
database: balius

0 commit comments

Comments
 (0)