Minor fixes 20/420/1
authorwrider <lji@research.att.com>
Wed, 26 Jun 2019 22:54:16 +0000 (18:54 -0400)
committerwrider <lji@research.att.com>
Wed, 26 Jun 2019 22:55:16 +0000 (18:55 -0400)
Change-Id: Icb5b38b4b01ecf2b2a95731d042caf1a5a66a039
Signed-off-by: wrider <lji@research.att.com>
ric-platform/50-RIC-Platform/bin/install
ric-platform/50-RIC-Platform/helm/a1mediator/templates/ingress-a1mediator.yaml
ric-platform/50-RIC-Platform/helm/appmgr/templates/deployment.yaml
ric-platform/50-RIC-Platform/helm/appmgr/templates/ingress-appmgr.yaml
ric-platform/50-RIC-Platform/helm/common/templates/_servicename.tpl
ric-platform/50-RIC-Platform/helm/kong-xapp/templates/ingress-xapp.yaml [deleted file]

index 75590be..eee5e52 100755 (executable)
@@ -53,13 +53,15 @@ helm package -d /tmp $DIR/../helm/common
 for component in $RICPLT_COMPONENTS; do
   echo "Preparing chart for comonent $component"
 
-  if [ $component = "kong-platform" ]; then 
+  if [ $component = "kong-platform" ]; then
+     mkdir -p $DIR/../helm/$component/charts
      helm dep up $DIR/../helm/$component
      helm install --namespace ricplt --name "${RELEASE_NAME}-$component" $DIR/../helm/$component --set postgresql.enabled=false --set env.database=off
      continue
   fi
 
-  if [ $component = "kong-xapp" ]; then 
+  if [ $component = "kong-xapp" ]; then
+     mkdir -p $DIR/../helm/$component/charts 
      helm dep up $DIR/../helm/$component
      helm install --namespace ricxapp --name "${RELEASE_NAME}-$component" $DIR/../helm/$component --set postgresql.enabled=false --set env.database=off
      continue
index 8147541..c0658d3 100644 (file)
@@ -8,5 +8,5 @@ spec:
       paths:
       - path: /a1mediator
         backend:
-          serviceName: {{ include "a1mediator.fullname" . }}
-          servicePort: {{ .Values.httpservice.port }}
\ No newline at end of file
+          serviceName: {{ include "common.servicename.a1mediator" . }}
+          servicePort: {{ .Values.httpservice.port }}
index dbcd315..acce132 100644 (file)
@@ -38,6 +38,10 @@ spec:
         release: {{ .Release.Name }}
     spec:
       hostname: {{ .Chart.Name }}
+      hostAliases:
+        - ip: "137.135.91.204"
+          hostnames:
+            - "snapshot.helm.ranco-dev-tools.eastus.cloudapp.azure.com"
       imagePullSecrets:
         - name: {{ include "common.repositoryCred" . }}
       containers:
index d2342a5..1f3d49f 100644 (file)
@@ -8,5 +8,5 @@ spec:
       paths:
       - path: /appmgr
         backend:
-          serviceName: {{ include "appmgr.fullname" . }}
-          servicePort: {{ .Values.appmgr.service.port }}
\ No newline at end of file
+          serviceName: {{ include "common.servicename.appmgr" . }}
+          servicePort: {{ .Values.appmgr.service.port }}
index 20e381a..4e93d43 100644 (file)
@@ -34,7 +34,7 @@
 {{- end -}}
 
 {{- define "common.servicename.dbaas" -}}
-  {{- $name := ( include "common.fullname.dbaas" . ) -}}
+  {{- $name := ( include "common.name.dbaas" . ) -}}
   {{- printf "service-%s" $name | trunc 63 | trimSuffix "-" -}}
 {{- end -}}
 
diff --git a/ric-platform/50-RIC-Platform/helm/kong-xapp/templates/ingress-xapp.yaml b/ric-platform/50-RIC-Platform/helm/kong-xapp/templates/ingress-xapp.yaml
deleted file mode 100644 (file)
index 54d7abf..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-apiVersion: extensions/v1beta1
-kind: Ingress
-metadata:
-  name: ric-ingress-xapp
-spec:
-  rules:
-  - http:
-      paths:
-      - path: /anr
-        backend:
-          serviceName: r0-xapp-anr
-          servicePort: 9999
\ No newline at end of file