From a14b07239b16bd79812a15ab47e971721314c9e5 Mon Sep 17 00:00:00 2001 From: Michel Hollands Date: Thu, 6 Jul 2023 14:11:08 +0100 Subject: [PATCH] Add check for empty list of namespaces to monitor Signed-off-by: Michel Hollands --- charts/meta-monitoring/templates/validate.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/meta-monitoring/templates/validate.yaml b/charts/meta-monitoring/templates/validate.yaml index 7b2b9a8..767d6ed 100644 --- a/charts/meta-monitoring/templates/validate.yaml +++ b/charts/meta-monitoring/templates/validate.yaml @@ -33,3 +33,7 @@ {{- end -}} {{- end -}} {{- end -}} + +{{- if empty .Values.namespacesToMonitor -}} + {{- fail "No namespaces have been specified in namespacesToMonitor" -}} +{{- end -}}