AETHER-357 Add ability to run control plane components selectively

Change-Id: I73cd5bab0fa624cf6cd3bb26b465f18c4ab5fc64
diff --git a/omec/omec-control-plane/templates/statefulset-mme.yaml b/omec/omec-control-plane/templates/statefulset-mme.yaml
index 7d2f5f4..0d47a40 100644
--- a/omec/omec-control-plane/templates/statefulset-mme.yaml
+++ b/omec/omec-control-plane/templates/statefulset-mme.yaml
@@ -4,6 +4,7 @@
 # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
 */}}
 
+{{- if .Values.config.mme.deploy }}
 {{ tuple "mme" . | include "omec-control-plane.service_account" }}
 ---
 apiVersion: apps/v1
@@ -45,6 +46,7 @@
         volumeMounts:
         - name: host-rootfs
           mountPath: /mnt/host-rootfs
+    {{- if .Values.config.hss.deploy }}
       - name: mme-dep-check
         image: {{ .Values.images.tags.depCheck | quote }}
         imagePullPolicy: {{ .Values.images.pullPolicy }}
@@ -74,6 +76,7 @@
           - kubernetes-entrypoint
         volumeMounts:
           []
+    {{- end }}
       - name: mme-init
         image: {{ .Values.images.tags.mme | quote }}
         imagePullPolicy: {{ .Values.images.pullPolicy }}
@@ -266,3 +269,4 @@
         hostPath:
           path: {{ .Values.config.coreDump.path }}
     {{- end }}
+{{- end }}