[VOL-5506] Disable service monitor by default
Change-Id: Ia0d553fb428e859e320518ca6d58ad8b125ffe05
Signed-off-by: Abhay Kumar <abhay.kumar@radisys.com>
diff --git a/voltha-go-controller/Chart.yaml b/voltha-go-controller/Chart.yaml
index 7c0e916..3369a7e 100644
--- a/voltha-go-controller/Chart.yaml
+++ b/voltha-go-controller/Chart.yaml
@@ -27,6 +27,6 @@
## Chart version for package voltha-go-controller
## Increment when Chart.yaml changes
-version: "2.15.1"
+version: "2.15.2"
# [EOF]
diff --git a/voltha-go-controller/templates/servicemonitor.yaml b/voltha-go-controller/templates/servicemonitor.yaml
index 4f07f7a..d5e05ac 100644
--- a/voltha-go-controller/templates/servicemonitor.yaml
+++ b/voltha-go-controller/templates/servicemonitor.yaml
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
---
+{{- if .Values.serviceMonitor.enable }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@@ -39,4 +40,5 @@
matchLabels:
app: "{{ .Chart.Name }}"
release: "{{ .Release.Name }}"
+{{- end }}
diff --git a/voltha-go-controller/values.yaml b/voltha-go-controller/values.yaml
index 0be450a..22b67d3 100644
--- a/voltha-go-controller/values.yaml
+++ b/voltha-go-controller/values.yaml
@@ -122,3 +122,6 @@
type: "etcd"
address: "voltha-infra-etcd-headless.infra.svc.cluster.local"
port: "2379"
+
+serviceMonitor:
+ enable: false