blob: 8cee9ad777fb36e695006686896a476c4ec94550 [file] [log] [blame]
Elia Battiston150669d2022-03-14 18:44:41 +01001---
2# Copyright 2022-present Open Networking Foundation
3#
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 }} \
43 --schema_mount_path={{ .Values.voltha_northbound_bbf_adapter.schema_mount_path }}