From 45481758243f6f4e9c95e302a2706a89ae3c047a Mon Sep 17 00:00:00 2001 From: Hitesh Nayak Date: Wed, 10 Apr 2024 22:38:51 +0530 Subject: [PATCH] fix: render secret when gitea.metrics.serviceMonitor is enabled Signed-off-by: Hitesh Nayak --- templates/gitea/metrics-secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gitea/metrics-secret.yaml b/templates/gitea/metrics-secret.yaml index 2698c1a..971b1ec 100644 --- a/templates/gitea/metrics-secret.yaml +++ b/templates/gitea/metrics-secret.yaml @@ -1,4 +1,4 @@ -{{- if and (.Values.gitea.config.metrics) (.Values.gitea.config.metrics.TOKEN) -}} +{{- if and (.Values.gitea.metrics.serviceMonitor.enabled) (.Values.gitea.config.metrics) (.Values.gitea.config.metrics.TOKEN) -}} apiVersion: v1 kind: Secret metadata: