[CORD-3186] mounting cord-version in xos-gui

Change-Id: I6d690e50eb73a9e31bfd4990ab56b5fab92a03df
diff --git a/xos-gui/templates/_helpers.tpl b/xos-gui/templates/_helpers.tpl
index 13a474e..74a28cc 100644
--- a/xos-gui/templates/_helpers.tpl
+++ b/xos-gui/templates/_helpers.tpl
@@ -55,3 +55,8 @@
 });
 {{- end }}
 
+{{- define "xos-gui.cord_version" }}
+{
+    "version": {{ .Values.cord_version | quote }}
+}
+{{- end }}
diff --git a/xos-gui/templates/gui-configmap.yaml b/xos-gui/templates/gui-configmap.yaml
index 0e4a5c5..16d588c 100644
--- a/xos-gui/templates/gui-configmap.yaml
+++ b/xos-gui/templates/gui-configmap.yaml
@@ -36,3 +36,16 @@
   config: |
 {{ include "xos-gui.style_config" . | indent 4 }}
 
+...
+---
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: gui-cord-version
+  labels:
+    {{- include "xos-gui.release_labels" . | indent 4 }}
+data:
+  config: |
+{{ include "xos-gui.cord_version" . | indent 4 }}
+
diff --git a/xos-gui/templates/gui-deployment.yaml b/xos-gui/templates/gui-deployment.yaml
index c00e073..f14cf7f 100644
--- a/xos-gui/templates/gui-deployment.yaml
+++ b/xos-gui/templates/gui-deployment.yaml
@@ -41,6 +41,9 @@
             - name: app-config
               mountPath: /var/www/dist/app.config.js
               subPath: app/app.config.js
+            - name: cord-version
+              mountPath: /var/www/dist/version.json
+              subPath: version.json
             - name: extensions-volume
               mountPath: /var/www/dist/extensions
       volumes:
@@ -56,5 +59,11 @@
             items:
               - key: config
                 path: app/app.config.js
+        - name: cord-version
+          configMap:
+            name: gui-cord-version
+            items:
+              - key: config
+                path: version.json
         - name: extensions-volume
           emptyDir: {}
diff --git a/xos-gui/values.yaml b/xos-gui/values.yaml
index 6949e5b..e2101b4 100644
--- a/xos-gui/values.yaml
+++ b/xos-gui/values.yaml
@@ -24,3 +24,5 @@
 xos_wsNodePort: 30008
 
 xos_projectName: "R-CORD"
+
+cord_version: 6.0.0-devel