CORD-3207 Make ONOS and Kafka service names configurable
Change-Id: I022dfce94a1d8b25662bbcc3610a4a4175804c85
diff --git a/xos-services/onos-service/Chart.yaml b/xos-services/onos-service/Chart.yaml
index e82959b..0a1c44c 100644
--- a/xos-services/onos-service/Chart.yaml
+++ b/xos-services/onos-service/Chart.yaml
@@ -15,4 +15,4 @@
description: A Helm chart for XOS's "onos-service" service, which configures ONOS
name: onos-service
-version: 2.0.0
+version: 2.0.1
diff --git a/xos-services/onos-service/templates/_tosca.tpl b/xos-services/onos-service/templates/_tosca.tpl
index c7623f7..da5acaa 100644
--- a/xos-services/onos-service/templates/_tosca.tpl
+++ b/xos-services/onos-service/templates/_tosca.tpl
@@ -27,7 +27,7 @@
properties:
name: ONOS_Fabric
kind: platform
- rest_hostname: onos-fabric-ui
+ rest_hostname: {{ .onosFabricRestService | quote }}
rest_port: 8181
onos_app#segmentrouting:
@@ -89,7 +89,7 @@
properties:
name: ONOS_CORD
kind: platform
- rest_hostname: onos-cord-ui
+ rest_hostname: {{ .onosCordRestService | quote }}
rest_port: 8181
onos_app#openflow:
@@ -147,17 +147,17 @@
- custom_types/onosservice.yaml
- custom_types/serviceinstanceattribute.yaml
-description: Configures the VTN ONOS service
+description: Configures the VOLTHA ONOS service
topology_template:
node_templates:
- service#ONOS_CORD:
+ service#ONOS_VOLTHA:
type: tosca.nodes.ONOSService
properties:
name: ONOS_VOLTHA
kind: platform
- rest_hostname: onos-voltha-ui.voltha.svc.cluster.local
+ rest_hostname: {{ .onosVolthaRestService | quote }}
rest_port: 8181
onos_app#olt:
@@ -168,7 +168,7 @@
version: 1.4.0
requirements:
- owner:
- node: service#ONOS_CORD
+ node: service#ONOS_VOLTHA
relationship: tosca.relationships.BelongsToOne
# CORD-Configuration
@@ -179,7 +179,7 @@
value: >
{
"kafka" : {
- "bootstrapServers" : "cord-kafka.default.svc.cluster.local:9092"
+ "bootstrapServers" : {{ .kafkaService | quote }}
}
}
requirements:
diff --git a/xos-services/onos-service/values.yaml b/xos-services/onos-service/values.yaml
index 7d9fcc5..eeadf06 100644
--- a/xos-services/onos-service/values.yaml
+++ b/xos-services/onos-service/values.yaml
@@ -32,6 +32,11 @@
cordConfigAppURL: "https://oss.sonatype.org/service/local/repositories/releases/content/org/opencord/cord-config/1.4.0/cord-config-1.4.0.oar"
vtnAppURL: "https://oss.sonatype.org/service/local/repositories/releases/content/org/opencord/vtn/1.6.0/vtn-1.6.0.oar"
+onosCordRestService: "onos-cord-ui.default.svc.cluster.local"
+onosVolthaRestService: "onos-voltha-ui.voltha.svc.cluster.local"
+onosFabricRestService: "onos-fabric-ui.default.svc.cluster.local"
+kafkaService: "cord-kafka.default.svc.cluster.local"
+
resources: {}
nodeSelector: {}