[RIC-464] R5 - DevOps: create script for default general params

Signed-off-by: Fuss, Areli (af732p) <areli.fuss@intl.att.com>
Change-Id: If2eadab6af227da20ed8114a3f99932eb1851cf8
diff --git a/helm/e2mgr/templates/deployment.yaml b/helm/e2mgr/templates/deployment.yaml
index f5cbafe..4719f2c 100644
--- a/helm/e2mgr/templates/deployment.yaml
+++ b/helm/e2mgr/templates/deployment.yaml
@@ -45,6 +45,14 @@
       hostname: {{ include "common.name.e2mgr" . }} 
       imagePullSecrets:
         - name: {{ include "common.dockerregistry.credential" $imagectx }}
+      initContainers:
+        - name: redis-init
+          image: "redis"
+          command:
+          - "/bin/sh"
+          args:
+          - '-c'
+          - "redis-cli -h {{ include "common.servicename.dbaas.tcp" . }} -p {{ include "common.serviceport.dbaas.redis" . }} SETNX \"{e2Manager},GENERAL\" \"{\"enableRic\":true}\""
       containers:
         - name: {{ include "common.containername.e2mgr" . }}
           image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.e2mgr.image.name }}:{{ .Values.e2mgr.image.tag }}