From 48f62b4c8987a48e925832fe70aadf7b09450498 Mon Sep 17 00:00:00 2001 From: Evan Hines <99751975+evan-hines-firebolt@users.noreply.github.com> Date: Tue, 23 Aug 2022 21:55:44 -0400 Subject: [PATCH] Allow customization of ServiceMonitor namespace for helm-template (#1491) * Allow users to customize which namespace they deploy their service monitors into * Add missing metrics object reference * Update charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml * Update charts/actions-runner-controller/templates/controller.metrics.serviceMonitor.yaml * Update charts/actions-runner-controller/values.yaml Co-authored-by: Yusuke Kuoka --- .../templates/controller.metrics.serviceMonitor.yaml | 1 + .../templates/githubwebhook.serviceMonitor.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/actions-runner-controller/templates/controller.metrics.serviceMonitor.yaml b/charts/actions-runner-controller/templates/controller.metrics.serviceMonitor.yaml index f0f6387a..07b2f3b9 100644 --- a/charts/actions-runner-controller/templates/controller.metrics.serviceMonitor.yaml +++ b/charts/actions-runner-controller/templates/controller.metrics.serviceMonitor.yaml @@ -8,6 +8,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} name: {{ include "actions-runner-controller.serviceMonitorName" . }} + namespace: {{ .Release.Namespace }} spec: endpoints: - path: /metrics diff --git a/charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml b/charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml index c5368dfb..f659cc42 100644 --- a/charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml +++ b/charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml @@ -8,6 +8,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} name: {{ include "actions-runner-controller-github-webhook-server.serviceMonitorName" . }} + namespace: {{ .Release.Namespace }} spec: endpoints: - path: /metrics