[A1POLICYMANAGEMENT] Make A1P ServiceMesh compatible
[oom.git] / kubernetes / a1policymanagement / resources / config / application_configuration.json
index 64c42e6..757ee04 100644 (file)
@@ -3,22 +3,12 @@
     "controller": [
       {
         "name": "controller1",
-        "baseUrl": "{{ .Values.sdncLink }}",
+        "baseUrl": "{{ (eq "true" (include "common.needTLS" .)) | ternary .Values.sdncLink .Values.sdncLinkHttp }}",
         "userName": "${A1CONTROLLER_USER}",
         "password": "${A1CONTROLLER_PASSWORD}"
       }
     ],
-    "ric": [
-      {
-        "name": "ric1",
-        "baseUrl": "{{ .Values.ricLink }}",
-        "controller": "controller1",
-        "managedElementIds": [
-          "kista_1",
-          "kista_2"
-        ]
-      }
-    ],
+    "ric": {{ include "a1p.generateRics" . | indent 6 | trim }},
     "streams_publishes": {
       "dmaap_publisher": {
         "type": "message_router",