[EDGEPOD-108] Define values to select video archives to be deployed

Change-Id: I81bb3fd538e36d02544beed25d8047ec5c78f185
diff --git a/ott-services/cdn-remote/Chart.yaml b/ott-services/cdn-remote/Chart.yaml
index b98a185..a0b3303 100644
--- a/ott-services/cdn-remote/Chart.yaml
+++ b/ott-services/cdn-remote/Chart.yaml
@@ -17,4 +17,4 @@
 appVersion: "1.0"
 description: A Helm chart for M-CORD CDN Services in Remote Edge
 name: cdn-remote
-version: 0.2.2
+version: 0.2.3
diff --git a/ott-services/cdn-remote/templates/configmap-video-archive.yaml b/ott-services/cdn-remote/templates/configmap-video-archive.yaml
index ce73787..29fa3c8 100644
--- a/ott-services/cdn-remote/templates/configmap-video-archive.yaml
+++ b/ott-services/cdn-remote/templates/configmap-video-archive.yaml
@@ -20,7 +20,7 @@
 metadata:
   name: start-stream
   labels:
-{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
+{{ tuple "video-archive" . | include "cdn-remote.metadata_labels" | indent 4 }}
 data:
   start-stream.sh: |
 {{ tuple "bin/_start-stream.sh.tpl" . | include "cdn-remote.template" | indent 4 }}
diff --git a/ott-services/cdn-remote/templates/statefulset-video-archive.yaml b/ott-services/cdn-remote/templates/statefulset-video-archive.yaml
index 4f515d1..2f5460a 100644
--- a/ott-services/cdn-remote/templates/statefulset-video-archive.yaml
+++ b/ott-services/cdn-remote/templates/statefulset-video-archive.yaml
@@ -68,6 +68,7 @@
         volumeMounts:
           []
       containers:
+{{- if .Values.config.videoArchive.q720p.enabled }}
       - name: streaming-720
         image: {{ .Values.images.tags.videoArchive | quote }}
         imagePullPolicy: {{ .Values.images.pullPolicy }}
@@ -88,6 +89,8 @@
         - name: start-script
           mountPath: /opt/start-stream.sh
           subPath: start-stream.sh
+{{- end }}
+{{- if .Values.config.videoArchive.q480p.enabled }}
       - name: streaming-480
         image: {{ .Values.images.tags.videoArchive | quote }}
         imagePullPolicy: {{ .Values.images.pullPolicy }}
@@ -108,6 +111,8 @@
         - name: start-script
           mountPath: /opt/start-stream.sh
           subPath: start-stream.sh
+{{- end }}
+{{- if .Values.config.videoArchive.q360p.enabled }}
       - name: streaming-360
         image: {{ .Values.images.tags.videoArchive | quote }}
         imagePullPolicy: {{ .Values.images.pullPolicy }}
@@ -128,6 +133,7 @@
         - name: start-script
           mountPath: /opt/start-stream.sh
           subPath: start-stream.sh
+{{- end }}
       volumes:
       - name: start-script
         configMap:
diff --git a/ott-services/cdn-remote/values.yaml b/ott-services/cdn-remote/values.yaml
index 3cc4542..963f766 100644
--- a/ott-services/cdn-remote/values.yaml
+++ b/ott-services/cdn-remote/values.yaml
@@ -49,6 +49,12 @@
 config:
   videoArchive:
     replicas: 1
+    q360p:
+      enabled: true
+    q480p:
+      enabled: true
+    q720p:
+      enabled: true
   antMedia:
     ports:
       httpui: 5080