Rename ext charts 58/558/6
authorwrider <lji@research.att.com>
Thu, 25 Jul 2019 02:57:07 +0000 (22:57 -0400)
committerLusheng Ji <lji@research.att.com>
Thu, 25 Jul 2019 14:08:26 +0000 (14:08 +0000)
This change enables that both ext service charts to be deployed
(since Helm release names are based on chart name) into the same
k8s cluster.
This change also contains a number of fixes.

Change-Id: I953b96a01440e3e51e762d70ffb9d6e2a10f2b42
Signed-off-by: wrider <lji@research.att.com>
19 files changed:
RECIPE_EXAMPLE/RIC_AUX_RECIPE_EXAMPLE
RECIPE_EXAMPLE/RIC_PLATFORM_RECIPE_EXAMPLE
ric-aux/85-Ext-Services/bin/install
ric-aux/85-Ext-Services/bin/uninstall
ric-aux/85-Ext-Services/helm/extsvcaux/Chart.yaml [moved from ric-aux/85-Ext-Services/helm/ext/Chart.yaml with 86% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/requirements.yaml [moved from ric-aux/85-Ext-Services/helm/ext/requirements.yaml with 100% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-docker.yaml [moved from ric-platform/55-Ext-Services/helm/ext/templates/services-docker.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-helm.yaml [moved from ric-platform/55-Ext-Services/helm/ext/templates/services-helm.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-platform.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-platform.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-xapp.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-xapp.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/values.yaml [moved from ric-aux/85-Ext-Services/helm/ext/values.yaml with 89% similarity]
ric-platform/55-Ext-Services/bin/install
ric-platform/55-Ext-Services/bin/uninstall
ric-platform/55-Ext-Services/helm/extsvcplt/Chart.yaml [moved from ric-platform/55-Ext-Services/helm/ext/Chart.yaml with 86% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/requirements.yaml [moved from ric-platform/55-Ext-Services/helm/ext/requirements.yaml with 100% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-aux.yaml [moved from ric-platform/55-Ext-Services/helm/ext/templates/services-aux.yaml with 97% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-docker.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-docker.yaml with 98% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-helm.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-helm.yaml with 98% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/values.yaml [moved from ric-platform/55-Ext-Services/helm/ext/values.yaml with 89% similarity]

index f1a6290..68c8e74 100644 (file)
@@ -70,6 +70,10 @@ dashboard:
       mock:
         rannames: "ABCD123456, EFGH123456"
 
-ext:
-  ip:
-    192.168.130.110
+extsvcaux:
+  ricip:
+    # The ip address of the ric cluster ingress controller
+    <IP_ADDRESS of the RIC cluster>
+  auxip:
+    # The ip address of the aux cluster ingress controller
+    <IP_ADDRESS of the AUX cluster>
index cf40fa5..d883d05 100644 (file)
@@ -131,7 +131,10 @@ submgr:
     tag: v0.1.0
 
 # the service for redirecting to AUX cluster
-ext:
-  ip:
+extsvcplt:
+  auxip:
     # The ip address of the aux cluster ingress controller
-    IP_ADDRESS
+    <IP_ADDRESS of the AUX cluster>
+  ricip:
+    # The ip address of the ric cluster ingress controller
+    <IP_ADDRESS of the RIC cluster>
index 39ca0ea..59f01ca 100755 (executable)
@@ -58,7 +58,7 @@ else
    COMMON_OVERRIDE=$RIC_COMMON_OVERRIDE
 fi
 
-RICAUX_COMPONENTS="ext"
+RICAUX_COMPONENTS="extsvcaux"
 
 echo "Deploying RIC AUX components [$RICAUX_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
index fd51c57..ad8dac6 100755 (executable)
@@ -30,7 +30,7 @@ else
    RELEASE_NAME=$RICAUX_RELEASE_NAME
 fi
 
-RICAUX_COMPONENTS="ext"
+RICAUX_COMPONENTS="extsvcaux"
 
 echo "Undeploying RIC AUX components [$RICAUX_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
@@ -17,7 +17,7 @@
 
 apiVersion: v1
 appVersion: "1.0"
-description: A Helm chart for setting up external endpoints as k8s services
-name: ext
-version: 0.1.0
+description: A Helm chart for setting up services with endpoints referencing external services so that these external services can be accessed as if they are in the same namespace.
+name: extsvcaux
+version: 0.2.0
 
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localdocker" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localhelm" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.ricip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricplt" . }}
         name: {{ include "common.ingressurl.ricplt" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.ricip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricxapp" . }}
         name: {{ include "common.ingressurl.ricxapp" . }}-http-ingress-port
 #   limitations under the License.                                             #
 ################################################################################
 
-
-# Default values for ves.
-# This is a YAML-formatted file.
-# Declare variables to be passed into your templates.
-
-ext:
-  ip: "192.168.130.84"
\ No newline at end of file
+extsvcaux:
+  # The IP address of the RIC cluster
+  ricip: "0.0.0.0"
+  # The IP address of the AUX cluster
+  auxip: "0.0.0.0"
\ No newline at end of file
index 68fb4dc..cf5a6db 100755 (executable)
@@ -24,10 +24,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
 
 source $DIR/../etc/ext.conf
 
-if [ -z "$RICAUX_RELEASE_NAME" ];then
+if [ -z "$RICPLT_RELEASE_NAME" ];then
    RELEASE_NAME=$helm_release_name
 else
-   RELEASE_NAME=$RICAUX_RELEASE_NAME
+   RELEASE_NAME=$RICPLT_RELEASE_NAME
 fi
 # Namespace configuration
 if [ -z "$RICPLT_NAMESPACE" ];then
@@ -58,9 +58,9 @@ else
    COMMON_OVERRIDE=$RIC_COMMON_OVERRIDE
 fi
 
-RICAUX_COMPONENTS="ext"
+RICPLT_COMPONENTS="extsvcplt"
 
-echo "Deploying RIC AUX components [$RICAUX_COMPONENTS]"
+echo "Deploying RIC Platform components [$RICPLT_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
 
 
@@ -69,7 +69,7 @@ COMMON_CHART_VERSION=$(cat $DIR/../../../ric-common/Common-Template/helm/ric-com
 helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common
 
 
-for component in $RICAUX_COMPONENTS; do
+for component in $RICPLT_COMPONENTS; do
   echo "Preparing chart for comonent $component"
   mkdir -p  $DIR/../helm/$component/charts/
   cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/
index 97edfa2..751c157 100755 (executable)
@@ -24,25 +24,24 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
 
 source $DIR/../etc/ext.conf
 
-if [ -z "$RICAUX_RELEASE_NAME" ];then
+if [ -z "$RICPLT_RELEASE_NAME" ];then
    RELEASE_NAME=$helm_release_name
 else
-   RELEASE_NAME=$RICAUX_RELEASE_NAME
+   RELEASE_NAME=$RICPLT_RELEASE_NAME
 fi
-if [ -z "$RICAUX_NAMESPACE" ];then
+if [ -z "$RICPLT_NAMESPACE" ];then
    NAMESPACE=$namespace
 else
-   NAMESPACE=$RICAUX_NAMESPACE
+   NAMESPACE=$RICPLT_NAMESPACE
 fi
 
-RICAUX_COMPONENTS="ext"
+RICPLT_COMPONENTS="extsvcplt"
 
-echo "Undeploying RIC AUX components [$RICAUX_COMPONENTS]"
+echo "Undeploying RIC Platform components [$RICPLT_COMPONENTS]"
 echo "Platform Namespace: $NAMESPACE"
 echo "Helm Release Name: $RELEASE_NAME"
 
 
-
-for component in $RICAUX_COMPONENTS; do
+for component in $RICPLT_COMPONENTS; do
   helm delete --purge  "${RELEASE_NAME}-$component" 
 done
@@ -17,7 +17,7 @@
 
 apiVersion: v1
 appVersion: "1.0"
-description: A Helm chart for setting up external endpoints as k8s services
-name: ext
-version: 0.1.0
+description: A Helm chart for setting up services with endpoints referencing external services so that these external services can be accessed as if they are in the same namespace.
+name: extsvcplt
+version: 0.2.0
 
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricaux" . }}
         name: {{ include "common.ingressurl.ricaux" . }}-http-ingress-port
@@ -66,7 +66,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.ricinfra" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localdocker" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localhelm" . }}-http-ingress-port
 #   limitations under the License.                                             #
 ################################################################################
 
-
-# Default values for ves.
-# This is a YAML-formatted file.
-# Declare variables to be passed into your templates.
-
-ext:
-  ip: "192.168.130.118"
+extsvcplt:
+  # The IP address of the RIC cluster
+  ricip: "0.0.0.0"
+  # The IP address of the AUX cluster
+  auxip: "0.0.0.0"
\ No newline at end of file