From 3b4525a47d86e336aaed15f89291415a5e8c6d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Fri, 3 Apr 2026 07:51:01 +0000 Subject: [PATCH] Bump chart version to 0.103.0 and add ServiceMonitor for hub-cleanup --- charts/hub/Chart.yaml | 2 +- .../hub-cleanup-servicemonitor.yaml | 18 ++++++++++++++++ .../templates/kerberos-hub/hub-cleanup.yaml | 21 +++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 charts/hub/templates/kerberos-hub/hub-cleanup-servicemonitor.yaml diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml index 699b38c..ebd7c5c 100644 --- a/charts/hub/Chart.yaml +++ b/charts/hub/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.102.0 +version: 0.103.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hub/templates/kerberos-hub/hub-cleanup-servicemonitor.yaml b/charts/hub/templates/kerberos-hub/hub-cleanup-servicemonitor.yaml new file mode 100644 index 0000000..b7776f2 --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-cleanup-servicemonitor.yaml @@ -0,0 +1,18 @@ +{{- if or (eq .Values.mode "all") (eq .Values.mode "ui") -}} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: hub-cleanup-servicemonitor + namespace: {{ .Release.Namespace }} + labels: + service: hub-cleanup + release: prometheus +spec: + selector: + matchLabels: + service: hub-cleanup + endpoints: + - port: hub-metrics + interval: 15s + path: /metrics +{{- end }} diff --git a/charts/hub/templates/kerberos-hub/hub-cleanup.yaml b/charts/hub/templates/kerberos-hub/hub-cleanup.yaml index a0f016f..11bed11 100644 --- a/charts/hub/templates/kerberos-hub/hub-cleanup.yaml +++ b/charts/hub/templates/kerberos-hub/hub-cleanup.yaml @@ -40,7 +40,11 @@ spec: envFrom: - configMapRef: name: mongodb-config + ports: + - containerPort: 8080 env: + - name: MODE + value: "serve" - name: LOG_LEVEL value: "{{ .Values.kerberoshub.cleanup.logLevel }}" - name: READ_ONLY @@ -50,4 +54,21 @@ spec: {{- if .Values.kerberoshub.extraEnv }} {{- toYaml .Values.kerberoshub.extraEnv | nindent 12 }} {{- end }} +--- +apiVersion: v1 +kind: Service +metadata: + name: hub-cleanup + namespace: {{ .Release.Namespace }} + labels: + app: hub-cleanup + service: hub-cleanup +spec: + ports: + - name: hub-metrics + port: 8080 + targetPort: 8080 + protocol: TCP + selector: + app: hub-cleanup {{- end }}