Add alarmadapter to ric-common template 33/3033/8
authorwahidw <abdulwahid.w@nokia.com>
Fri, 27 Mar 2020 13:53:54 +0000 (13:53 +0000)
committerLusheng Ji <lji@research.att.com>
Tue, 14 Apr 2020 22:55:20 +0000 (22:55 +0000)
Change-Id: Iea2c620afc990b6bddc37f408448fbd9f0b08a04
Signed-off-by: wahidw <abdulwahid.w@nokia.com>
ric-aux/helm/dashboard/requirements.yaml
ric-aux/helm/ves/requirements.yaml
ric-common/Common-Template/helm/ric-common/Chart.yaml
ric-common/Common-Template/helm/ric-common/templates/_alarmadapter.tpl [new file with mode: 0755]

index 40a2e9b..ba6a220 100644 (file)
@@ -17,5 +17,5 @@
 
 dependencies:
   - name: ric-common
-    version: ~3.1.0
+    version: ^3.1.0
     repository: "@local"
index 40a2e9b..ba6a220 100644 (file)
@@ -17,5 +17,5 @@
 
 dependencies:
   - name: ric-common
-    version: ~3.1.0
+    version: ^3.1.0
     repository: "@local"
index e40385b..23da501 100644 (file)
@@ -18,4 +18,4 @@
 apiVersion: v1
 description: Common templates for inclusion in other charts
 name: ric-common
-version: 3.1.1
+version: 3.3.0
diff --git a/ric-common/Common-Template/helm/ric-common/templates/_alarmadapter.tpl b/ric-common/Common-Template/helm/ric-common/templates/_alarmadapter.tpl
new file mode 100755 (executable)
index 0000000..6ff7b58
--- /dev/null
@@ -0,0 +1,64 @@
+################################################################################
+#   Copyright (c) 2019 AT&T Intellectual Property.                             #
+#                                                                              #
+#   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.                                             #
+################################################################################
+
+{{- define "common.name.alarmadapter" -}}
+  {{- printf "alarmadapter" -}}
+{{- end -}}
+
+{{- define "common.fullname.alarmadapter" -}}
+  {{- $name := ( include "common.name.alarmadapter" . ) -}}
+  {{- $namespace := ( include "common.namespace.platform" . ) -}}
+  {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.configmapname.alarmadapter" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.deploymentname.alarmadapter" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.containername.alarmadapter" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.serviceaccountname.alarmadapter" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.ingressname.alarmadapter" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "ingress-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.servicename.alarmadapter.rmr" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.servicename.alarmadapter.http" -}}
+  {{- $name := ( include "common.fullname.alarmadapter" . ) -}}
+  {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.serviceport.alarmadapter.rmr.data" -}}4560{{- end -}}
+{{- define "common.serviceport.alarmadapter.rmr.route" -}}4561{{- end -}}
+{{- define "common.serviceport.alarmadapter.http" -}}3800{{- end -}}