blob: 5d7c66a1722424f80cd2c0d18c7e548eaf08b3b3 [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
24
25 netopeer2-server
26
27 exec /app/bbf-adapter \
28 --log_level={{ $log_level }} \
29 --probe_address=:8080 \
30 --trace_enabled={{ .Values.global.tracing.enabled }} \
31 --trace_agent_address={{ tpl .Values.services.tracing_agent.address . }} \
32 --log_correlation_enabled={{ .Values.global.log_correlation.enabled }} \
33 --voltha_nbi_endpoint={{ .Values.global.voltha_stack_name }}-voltha-api.{{ .Values.global.voltha_stack_namespace }}.svc:{{ .Values.voltha_northbound_bbf_adapter.voltha_nbi_port }} \
34 --tls_enabled={{ .Values.voltha_northbound_bbf_adapter.tls_enabled }} \
35 --tls_verify={{ .Values.voltha_northbound_bbf_adapter.tls_verify }} \
36 --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 }} \
37 --onos_user={{ .Values.voltha_northbound_bbf_adapter.onos_user }} \
38 --onos_pass={{ .Values.voltha_northbound_bbf_adapter.onos_pass }}