Add kafka and XOS-core parameters to vrouter xos-service for SEBA
In this way you can override kafka and xos-core endpoints via values file.
Change-Id: Iced04a5809863a9d13fcd5e24eabdbdfb031a600
diff --git a/xos-services/vrouter/Chart.yaml b/xos-services/vrouter/Chart.yaml
index cf4eb0e..7bcc3e8 100644
--- a/xos-services/vrouter/Chart.yaml
+++ b/xos-services/vrouter/Chart.yaml
@@ -17,5 +17,5 @@
description: A Helm chart for XOS's "vRouter" service
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.1.0
+version: 2.1.1
appVersion: 2.1.0
diff --git a/xos-services/vrouter/templates/_helpers.tpl b/xos-services/vrouter/templates/_helpers.tpl
index ae5e80b..c27cfe9 100644
--- a/xos-services/vrouter/templates/_helpers.tpl
+++ b/xos-services/vrouter/templates/_helpers.tpl
@@ -51,7 +51,7 @@
accessor:
username: {{ .Values.xosAdminUser | quote }}
password: {{ .Values.xosAdminPassword | quote }}
- endpoint: xos-core:50051
+ endpoint: {{ .Values.xosCoreService | quote }}
logging:
version: 1
handlers:
@@ -65,7 +65,7 @@
kafka:
class: kafkaloghandler.KafkaLogHandler
bootstrap_servers:
- - "cord-kafka:9092"
+ - "{{ .Values.kafkaService }}:9092"
topic: xos.log.vrouter
loggers:
'':
diff --git a/xos-services/vrouter/values.yaml b/xos-services/vrouter/values.yaml
index 0bfd1cf..32a683f 100644
--- a/xos-services/vrouter/values.yaml
+++ b/xos-services/vrouter/values.yaml
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Default values for addressmanager.
+# Default values for vrouter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
@@ -33,6 +33,9 @@
xosAdminUser: "admin@opencord.org"
xosAdminPassword: "letmein"
+xosCoreService: "xos-core:50051"
+
+kafkaService: "cord-kafka"
resources: {}