From 2f96fcd504744e9a77e30d27c4eba81fd91c404d Mon Sep 17 00:00:00 2001 From: travisn Date: Mon, 26 Jun 2023 12:26:39 -0600 Subject: [PATCH] ci: add exporter to commit prefixes Add the exporter to the list of commit prefixes Signed-off-by: travisn (cherry picked from commit 96ff80f8b02880dfc3b00120e024ea65f8a0855a) --- .commitlintrc.json | 1 + pkg/operator/k8sutil/prometheus.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.commitlintrc.json b/.commitlintrc.json index 05b430a34..427dcd7ea 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -15,6 +15,7 @@ "core", "csi", "docs", + "exporter", "external", "file", "helm", diff --git a/pkg/operator/k8sutil/prometheus.go b/pkg/operator/k8sutil/prometheus.go index e06ada871..fe9bd664e 100644 --- a/pkg/operator/k8sutil/prometheus.go +++ b/pkg/operator/k8sutil/prometheus.go @@ -108,7 +108,7 @@ func DeleteServiceMonitor(context *clusterd.Context, ctx context.Context, ns str } _, err = client.MonitoringV1().ServiceMonitors(ns).Get(ctx, name, metav1.GetOptions{}) if err != nil { - // Either the service monitor does not exist or there are not privileges to detect it + // Either the service monitor does not exist or there are no privileges to detect it // so we ignore any errors return nil }