Elia Battiston | 150669d | 2022-03-14 18:44:41 +0100 | [diff] [blame] | 1 | --- |
Joey Armstrong | 34d4ad7 | 2023-01-03 09:47:15 -0500 | [diff] [blame] | 2 | # Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Elia Battiston | 150669d | 2022-03-14 18:44:41 +0100 | [diff] [blame] | 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 | |
| 17 | apiVersion: v1 |
| 18 | kind: ConfigMap |
| 19 | metadata: |
| 20 | name: bbf-adapter-startup |
| 21 | data: |
| 22 | startup.sh: |- |
| 23 | #!/bin/sh |
Elia Battiston | fd151c6 | 2022-04-04 16:42:48 +0200 | [diff] [blame] | 24 | |
| 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 Battiston | 150669d | 2022-03-14 18:44:41 +0100 | [diff] [blame] | 31 | 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 Battiston | fd151c6 | 2022-04-04 16:42:48 +0200 | [diff] [blame] | 42 | --onos_pass={{ .Values.voltha_northbound_bbf_adapter.onos_pass }} \ |
Elia Battiston | f14037f | 2022-07-15 15:12:42 +0000 | [diff] [blame] | 43 | --schema_mount_path={{ .Values.voltha_northbound_bbf_adapter.schema_mount_path }} \ |
Elia Battiston | f964e1f | 2022-08-17 12:01:50 +0000 | [diff] [blame] | 44 | --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 . }} |