blob: bee63d337b1ee07fd80226b89e27f441d6ff83d6 [file] [log] [blame]
Elia Battiston150669d2022-03-14 18:44:41 +01001---
Joey Armstrong34d4ad72023-01-03 09:47:15 -05002# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
Elia Battiston150669d2022-03-14 18:44:41 +01003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15{{- $log_level := tpl .Values.voltha_northbound_bbf_adapter.log_level . }}
16
17apiVersion: v1
18kind: ConfigMap
19metadata:
20 name: bbf-adapter-startup
21data:
22 startup.sh: |-
23 #!/bin/sh
Elia Battistonfd151c62022-04-04 16:42:48 +020024
25 {{- if .Values.voltha_northbound_bbf_adapter.log_netopeer2 }}
26 netopeer2-server -x {{ .Values.voltha_northbound_bbf_adapter.schema_mount_path }} -d -v3 > /netopeer2.log 2>&1 &
27 {{- else }}
28 netopeer2-server -x {{ .Values.voltha_northbound_bbf_adapter.schema_mount_path }}
29 {{- end }}
30
Elia Battiston150669d2022-03-14 18:44:41 +010031 exec /app/bbf-adapter \
32 --log_level={{ $log_level }} \
33 --probe_address=:8080 \
34 --trace_enabled={{ .Values.global.tracing.enabled }} \
35 --trace_agent_address={{ tpl .Values.services.tracing_agent.address . }} \
36 --log_correlation_enabled={{ .Values.global.log_correlation.enabled }} \
37 --voltha_nbi_endpoint={{ .Values.global.voltha_stack_name }}-voltha-api.{{ .Values.global.voltha_stack_namespace }}.svc:{{ .Values.voltha_northbound_bbf_adapter.voltha_nbi_port }} \
38 --tls_enabled={{ .Values.voltha_northbound_bbf_adapter.tls_enabled }} \
39 --tls_verify={{ .Values.voltha_northbound_bbf_adapter.tls_verify }} \
40 --onos_rest_endpoint={{ .Values.global.voltha_infra_name }}-onos-classic-hs.{{ .Values.global.voltha_infra_namespace }}.svc:{{ .Values.voltha_northbound_bbf_adapter.onos_rest_port }} \
41 --onos_user={{ .Values.voltha_northbound_bbf_adapter.onos_user }} \
Elia Battistonfd151c62022-04-04 16:42:48 +020042 --onos_pass={{ .Values.voltha_northbound_bbf_adapter.onos_pass }} \
Elia Battistonf14037f2022-07-15 15:12:42 +000043 --schema_mount_path={{ .Values.voltha_northbound_bbf_adapter.schema_mount_path }} \
Elia Battistonf964e1f2022-08-17 12:01:50 +000044 --kafka_cluster_address={{ tpl .Values.services.kafka.cluster.address . }} \
45 --kv_store_type={{ tpl .Values.services.kv_store.type . }} \
46 --kv_store_address={{ tpl .Values.services.kv_store.address . }} \
47 --kv_store_request_timeout={{ tpl .Values.voltha_northbound_bbf_adapter.kv_store_timeout . }} \
48 --kv_store_prefix={{ tpl .Values.voltha_northbound_bbf_adapter.kv_store_data_prefix . }}