OSM DB Update Charm
[osm/devops.git] / installers / charm / osm-update-db-operator / actions.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 update-db:
16   description: |
17     Updates the Mongodb and MySQL with the new data needed for the target OSM
18   params:
19     current-version:
20       type: integer
21       description: "Current version of Charmed OSM - Example: 9"
22     target-version:
23       type: integer
24       description: "Final version of OSM after the update - Example: 10"
25     mysql-only:
26       type: boolean
27       description: "if True the update is only applied for mysql database"
28     mongodb-only:
29       type: boolean
30       description: "if True the update is only applied for mongo database"
31   required:
32     - current-version
33     - target-version
34 apply-patch:
35   description: |
36     Updates de database to apply the changes needed to fix a bug
37   params:
38     bug-number:
39       type: integer
40       description: "The number of the bug that needs to be fixed"
41   required:
42     - bug-number