Add e2 pre privilegedmode: true 46/546/1
authorZhe Huang <zhehuang@research.att.com>
Tue, 23 Jul 2019 20:32:39 +0000 (16:32 -0400)
committerZhe Huang <zhehuang@research.att.com>
Tue, 23 Jul 2019 20:32:39 +0000 (16:32 -0400)
Signed-off-by: Zhe Huang <zhehuang@research.att.com>
Change-Id: I1a59ee7a5a49e49b1a6aa56559f3fd6a3f447588

RECIPE_EXAMPLE/RIC_PLATFORM_RECIPE_EXAMPLE
ric-platform/50-RIC-Platform/helm/e2mgr/templates/deployment.yaml
ric-platform/50-RIC-Platform/helm/e2mgr/values.yaml
ric-platform/50-RIC-Platform/helm/e2term/templates/deployment.yaml
ric-platform/50-RIC-Platform/helm/e2term/values.yaml

index 483e736..cf40fa5 100644 (file)
@@ -99,6 +99,7 @@ e2mgr:
     tag: 1.6.0
   env:
     RIC_ID: "bbbccc-abcd0e/20"
+  privilegedmode: true
 
 
 # E2 Termination
@@ -110,6 +111,8 @@ e2term:
     tag: 1.6.0
   env:
     print: "1"
+  privilegedmode: true
+  hostnetworkmode: true
 
 # Routing Manager
 rtmgr:
index c10fa6b..fb27c75 100644 (file)
@@ -65,7 +65,7 @@ spec:
           stdin: true
           tty: true
           securityContext:
-            privileged: true
+            privileged: {{ .Values.e2mgr.privilegedmode}}
       volumes:
         - name: local-router-file
           configMap:
index f6ee2dd..ed90d34 100644 (file)
@@ -40,7 +40,8 @@ e2mgr:
   image:
     name: e2mgr
     tag: 1.6.0 
-  
+
+  privilegedmode: false
   
   replicaCount: 1
   
index ed80b84..03d6603 100644 (file)
@@ -42,7 +42,7 @@ spec:
         release: {{ .Release.Name }}
     spec:
       hostname: {{ include "common.name.e2term" . }}
-      hostNetwork: true
+      hostNetwork: {{ .Values.e2term.hostnetworkmode }}
       dnsPolicy: ClusterFirstWithHostNet
       imagePullSecrets:
         - name: {{ include "common.repositoryCred" . }}
@@ -65,7 +65,7 @@ spec:
           stdin: true
           tty: true
           securityContext:
-            privileged: true
+            privileged: {{ .Values.e2term.privilegedmode }}
       volumes:
         - name: local-router-file
           configMap:
index a4d72fc..f58b110 100644 (file)
@@ -38,7 +38,9 @@ e2term:
     name: e2
     tag: 1.6.0
   
-  
+  privilegedmode: true
+  hostnetworkmode: true
+
   replicaCount: 1
   env:
     print: "1"