ves collector chart adapter to use common chart definitions 86/586/3
authorrshacham <rshacham@research.att.com>
Mon, 29 Jul 2019 19:21:02 +0000 (19:21 +0000)
committerrshacham <rshacham@research.att.com>
Tue, 30 Jul 2019 20:37:01 +0000 (20:37 +0000)
Change-Id: Ia75938c0d9b3c8abb9e781f03c91695552e832ec
Signed-off-by: rshacham <rshacham@research.att.com>
RECIPE_EXAMPLE/RIC_AUX_RECIPE_EXAMPLE
RECIPE_EXAMPLE/RIC_PLATFORM_RECIPE_EXAMPLE
ric-aux/80-Auxiliary-Functions/helm/ves/templates/_helpers.tpl [deleted file]
ric-aux/80-Auxiliary-Functions/helm/ves/templates/configmap.yaml
ric-aux/80-Auxiliary-Functions/helm/ves/templates/ingress-ves.yaml
ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-deployment.yaml
ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-service.yaml
ric-common/Common-Template/helm/ric-common/templates/_servicename.tpl

index 68c8e74..73e27f0 100644 (file)
@@ -63,7 +63,7 @@ dashboard:
   # Override the name using the following option
   # nameOverride:
   image:
-    name:: ric-dash-be
+    name: ric-dash-be
     tag: 1.0.5
   properties:
     e2mgr:
index d883d05..3f48dc0 100644 (file)
@@ -65,7 +65,7 @@ a1mediator:
   # repositoryOverride:
   image:
     name: ric-plt-a1
-    tag: 0.8.3
+    tag: 0.9.0
   rmr_timeout_config:
     rcv_retry_interval_ms: 500
     rcv_retry_times: 20
@@ -75,8 +75,8 @@ appmgr:
   # Use the following option to override the docker registry value
   # repositoryOverride:
   image:
-    name: appmgr
-    tag: 1.0.4
+    name: ric-plt-appmgr
+    tag: 0.1.5
 
 
 
@@ -95,8 +95,8 @@ e2mgr:
   # Use the following option to override the docker registry value
   # repositoryOverride:
   image:
-    name: e2mgr
-    tag: 1.6.0
+    name: ric-plt-e2mgr
+    tag: 1.0.0
   env:
     RIC_ID: "bbbccc-abcd0e/20"
   privilegedmode: true
@@ -107,8 +107,8 @@ e2term:
   # Use the following option to override the docker registry value
   # repositoryOverride:
   image:
-    name: e2
-    tag: 1.6.0
+    name: ric-plt-e2
+    tag: 1.0.0
   env:
     print: "1"
   privilegedmode: true
@@ -119,22 +119,22 @@ rtmgr:
   # Use the following option to override the docker registry value
   # repositoryOverride:
   image:
-    name: rtmgr
-    tag: 0.0.2
+    name: ric-plt-rtmgr
+    tag: 0.3.1
 
 # Subscription Manager
 submgr:
   # Use the following option to override the docker registry value
   # repositoryOverride:
   image:
-    name: submgr
-    tag: v0.1.0
+    name: ric-plt-submgr
+    tag: 0.5.0
 
 # the service for redirecting to AUX cluster
 extsvcplt:
   auxip:
     # The ip address of the aux cluster ingress controller
-    <IP_ADDRESS of the AUX cluster>
+    <IP_ADDRESS of the AUX cluster>    
   ricip:
     # The ip address of the ric cluster ingress controller
-    <IP_ADDRESS of the RIC cluster>
+    <IP_ADDRESS of the RIC cluster>
\ No newline at end of file
diff --git a/ric-aux/80-Auxiliary-Functions/helm/ves/templates/_helpers.tpl b/ric-aux/80-Auxiliary-Functions/helm/ves/templates/_helpers.tpl
deleted file mode 100644 (file)
index ff29c31..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-################################################################################
-#   Copyright (c) 2019 AT&T Intellectual Property.                             #
-#   Copyright (c) 2019 Nokia.                                                  #
-#                                                                              #
-#   Licensed under the Apache License, Version 2.0 (the "License");            #
-#   you may not use this file except in compliance with the License.           #
-#   You may obtain a copy of the License at                                    #
-#                                                                              #
-#       http://www.apache.org/licenses/LICENSE-2.0                             #
-#                                                                              #
-#   Unless required by applicable law or agreed to in writing, software        #
-#   distributed under the License is distributed on an "AS IS" BASIS,          #
-#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
-#   See the License for the specific language governing permissions and        #
-#   limitations under the License.                                             #
-################################################################################
-
-{{/* vim: set filetype=mustache: */}}
-{{/*
-Expand the name of the chart.
-*/}}
-{{- define "vescollector.name" -}}
-{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Create a default fully qualified app name.
-We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
-If release name contains chart name it will be used as a full name.
-*/}}
-{{- define "vescollector.fullname" -}}
-{{- if .Values.fullnameOverride -}}
-{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
-{{- else -}}
-{{- $name := default .Chart.Name .Values.nameOverride -}}
-{{- if contains $name .Release.Name -}}
-{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
-{{- else -}}
-{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Create chart name and version as used by the chart label.
-*/}}
-{{- define "vescollector.chart" -}}
-{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
index e0680e6..e770ac8 100644 (file)
@@ -19,7 +19,7 @@
 apiVersion: v1
 kind: ConfigMap
 metadata:
-  name: dmaap-configmap
+  name: {{ include "common.configmapname.ves" . }}
 data:
   DMaapConfig.json: |
     {
@@ -30,7 +30,7 @@ data:
           "class": "HpCambriaOutputStream",
           "stripHpId": "true",
           "type": "out",
-          "cambria.hosts": "message-router:3904"
+          "cambria.hosts": "ricaux-message-router:3904"
         }
       ]
     }
\ No newline at end of file
index 6db96de..d46223e 100644 (file)
@@ -1,12 +1,12 @@
 apiVersion: extensions/v1beta1
 kind: Ingress
 metadata:
-  name: ric-ingress-ves
+  name: {{ include "common.ingressname.ves" . }}
 spec:
   rules:
   - http:
       paths:
       - path: /vescollector
         backend:
-          serviceName: xdcae-ves-collector
+          serviceName: {{ include "common.servicename.ves.http" . }}
           servicePort: {{ include "common.serviceport.ves.http.container" . }}
index 6d79ac7..05040f8 100644 (file)
 kind: Deployment\r
 apiVersion: extensions/v1beta1\r
 metadata:\r
-  name: {{ include "vescollector.fullname" . }}\r
+  name: {{ include "common.deploymentname.ves" . }}\r
   generation: 1\r
   labels:\r
-    app: dcae-ves-collector\r
-    cfydeployment: ves\r
-    cfynode: ves\r
-    cfynodeinstance: ves_uj48fg\r
-    k8sdeployment: dep-dcae-ves-collector\r
+    app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}\r
+    release: {{ .Release.Name }}\r
+    heritage: {{ .Release.Service }}\r
   annotations:\r
     deployment.kubernetes.io/revision: '1'\r
 spec:\r
   replicas: {{ .Values.ves.replicaCount }}\r
   selector:\r
     matchLabels:\r
-      app: dcae-ves-collector\r
-      cfydeployment: ves\r
-      cfynode: ves\r
-      cfynodeinstance: ves_uj48fg\r
-      k8sdeployment: dep-dcae-ves-collector\r
+      app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
+      release: {{ .Release.Name }}\r
   template:\r
     metadata:\r
       labels:\r
-        app: dcae-ves-collector\r
-        cfydeployment: ves\r
-        cfynode: ves\r
-        cfynodeinstance: ves_uj48fg\r
-        k8sdeployment: dep-dcae-ves-collector\r
+        app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
+        release: {{ .Release.Name }}\r
     spec:\r
+      hostname: {{ include "common.name.ves" . }}\r
       volumes:\r
       - name: component-log\r
         emptyDir: {}\r
       - name: dmaap-config-file\r
         configMap:\r
-          name: dmaap-configmap\r
+          name: {{ include "common.configmapname.ves" . }}\r
+        imagePullPolicy: {{ include "common.pullPolicy" . }}\r
+      imagePullSecrets:\r
+      - name: onap-docker-registry-key\r
       containers:\r
-      - name: {{ include "common.namespace" . }}-{{include "common.name" . }}\r
+      - name: {{ include "common.containername.ves" . }}\r
         image: {{ .Values.ves.onapRepository }}/{{ .Values.ves.image.name }}:{{ .Values.ves.image.tag }}\r
         ports:\r
         - containerPort: {{ include "common.serviceport.ves.http.container" . }}\r
           protocol: TCP\r
         - containerPort: {{ include "common.serviceport.ves.https.container" . }}\r
           protocol: TCP\r
-        env:\r
-        - name: CONSUL_HOST\r
-          value: consul-server.onap\r
-        - name: CONFIG_BINDING_SERVICE\r
-          value: config-binding-service\r
-        - name: POD_IP\r
-          valueFrom:\r
-            fieldRef:\r
-              apiVersion: v1\r
-              fieldPath: status.podIP\r
-        resources: {}\r
         volumeMounts:\r
         - name: component-log\r
           mountPath: "/opt/app/VESCollector/logs/ecomp"\r
@@ -91,19 +77,4 @@ spec:
           failureThreshold: 1\r
         terminationMessagePath: "/dev/termination-log"\r
         terminationMessagePolicy: File\r
-        imagePullPolicy: IfNotPresent\r
-      restartPolicy: Always\r
-      terminationGracePeriodSeconds: 30\r
-      dnsPolicy: ClusterFirst\r
-      securityContext: {}\r
-      imagePullSecrets:\r
-      - name: onap-docker-registry-key\r
-      hostname: dcae-ves-collector\r
-      schedulerName: default-scheduler\r
-  strategy:\r
-    type: RollingUpdate\r
-    rollingUpdate:\r
-      maxUnavailable: 1\r
-      maxSurge: 1\r
-  revisionHistoryLimit: 10\r
-  progressDeadlineSeconds: 600\r
+      restartPolicy: Always
\ No newline at end of file
index cc66510..c2e137c 100644 (file)
 kind: Service\r
 apiVersion: v1\r
 metadata:\r
-  name: xdcae-ves-collector\r
+  name: {{ include "common.servicename.ves.http" . }}\r
   labels:\r
-    app: dcae-ves-collector\r
-    cfydeployment: ves\r
-    cfynode: ves\r
-    cfynodeinstance: ves_uj48fg\r
-    k8sdeployment: dep-dcae-ves-collector\r
+    app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}\r
+    release: {{ .Release.Name }}\r
+    heritage: {{ .Release.Service }}\r
 spec:\r
   ports:\r
-  - name: xport-t-8080\r
+  - name: http\r
     protocol: TCP\r
     port: {{ include "common.serviceport.ves.http.container" . }}\r
     targetPort: {{ include "common.serviceport.ves.http.container" . }}\r
     nodePort: {{ include "common.serviceport.ves.http" . }}\r
-  - name: xport-t-8443\r
+  - name: https\r
     protocol: TCP\r
     port: {{ include "common.serviceport.ves.https.container" . }}\r
     targetPort: {{ include "common.serviceport.ves.https.container" . }}\r
     nodePort: {{ include "common.serviceport.ves.https" . }}\r
   selector:\r
-    app: dcae-ves-collector\r
-  type: NodePort\r
-  sessionAffinity: None\r
-  externalTrafficPolicy: Cluster\r
-status:\r
-  loadBalancer: {}\r
+    app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
+    release: {{ .Release.Name }}\r
+  type: NodePort
\ No newline at end of file
index 8af2a97..4d82848 100644 (file)
   {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
 {{- end -}}
 
+{{- define "common.servicename.ves.http" -}}
+  {{- $name := ( include "common.fullname.ves" . ) -}}
+  {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
 
 ###################### TCP Service ##################################