Add osm-nbi sidecar charm
[osm/devops.git] / installers / charm / osm-nbi / config.yaml
1 # Copyright 2022 Canonical Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14 #
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
17 #
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
20 #
21 #
22 # This file populates the Configure tab on Charmhub.
23 # See https://juju.is/docs/some-url-to-be-determined/ for a checklist and guidance.
24
25 options:
26   log-level:
27     default: "INFO"
28     description: |
29       Set the Logging Level.
30
31       Options:
32         - TRACE
33         - DEBUG
34         - INFO
35         - WARN
36         - ERROR
37         - FATAL
38     type: string
39   database-commonkey:
40     description: Database COMMON KEY
41     type: string
42     default: osm
43
44   # Ingress options
45   external-hostname:
46     default: ""
47     description: |
48       The url that will be configured in the Kubernetes ingress.
49
50       The easiest way of configuring the external-hostname without having the DNS setup is by using
51       a Wildcard DNS like nip.io constructing the url like so:
52         - nbi.127.0.0.1.nip.io (valid within the K8s cluster node)
53         - nbi.<k8s-worker-ip>.nip.io (valid from outside the K8s cluster node)
54
55       This option is only applicable when the Kubernetes cluster has nginx ingress configured
56       and the charm is related to the nginx-ingress-integrator.
57       See more: https://charmhub.io/nginx-ingress-integrator
58     type: string
59   max-body-size:
60     default: 20
61     description: Max allowed body-size (for file uploads) in megabytes, set to 0 to
62       disable limits.
63     source: default
64     type: int
65     value: 20
66   tls-secret-name:
67     description: TLS secret name to use for ingress.
68     type: string
69
70   # Debug-mode options
71   debug-mode:
72     type: boolean
73     description: |
74       Great for OSM Developers! (Not recommended for production deployments)
75         
76       This action activates the Debug Mode, which sets up the container to be ready for debugging.
77       As part of the setup, SSH is enabled and a VSCode workspace file is automatically populated.
78
79       After enabling the debug-mode, execute the following command to get the information you need
80       to start debugging:
81         `juju run-action get-debug-mode-information <unit name> --wait`
82       
83       The previous command returns the command you need to execute, and the SSH password that was set.
84
85       See also:
86         - https://charmhub.io/osm-nbi/configure#nbi-hostpath
87         - https://charmhub.io/osm-nbi/configure#common-hostpath
88     default: false
89   nbi-hostpath:
90     type: string
91     description: |
92       Set this config to the local path of the NBI module to persist the changes done during the
93       debug-mode session.
94
95       Example:
96         $ git clone "https://osm.etsi.org/gerrit/osm/NBI" /home/ubuntu/NBI
97         $ juju config nbi nbi-hostpath=/home/ubuntu/NBI
98
99       This configuration only applies if option `debug-mode` is set to true. 
100
101   common-hostpath:
102     type: string
103     description: |
104       Set this config to the local path of the common module to persist the changes done during the
105       debug-mode session.
106
107       Example:
108         $ git clone "https://osm.etsi.org/gerrit/osm/common" /home/ubuntu/common
109         $ juju config nbi common-hostpath=/home/ubuntu/common
110
111       This configuration only applies if option `debug-mode` is set to true.