Major improvement in OSM charms 85/10385/17
authorDavid Garcia <david.garcia@canonical.com>
Wed, 24 Feb 2021 12:48:22 +0000 (13:48 +0100)
committergarciadav <david.garcia@canonical.com>
Fri, 5 Mar 2021 10:04:33 +0000 (11:04 +0100)
commit49379ced23b5e344a773ce77ac9cb59c1864e19b
treeca1718db427b44c5720a8d36d777bdba9a46d9b1
parente5fd208248a496cd798a66cb27216e83f2852a76
Major improvement in OSM charms

- Adapt all new operator charms to use the same pattern. They are all
using now this library that encapsulates the common logic for all
charms: https://github.com/davigar15/ops-lib-charmed-osm. That will be
eventually moved to gitlab, when it has a PyPI repository available
- Add unit tests to all charms
- Modify installer and bundles to point to the new charms
- Improve the build.sh script for building the charms

Change-Id: I0896ceb082d1b6a76b3560c07482a4135a220a3f
Signed-off-by: David Garcia <david.garcia@canonical.com>
115 files changed:
devops-stages/stage-test.sh
installers/charm/build.sh
installers/charm/bundles/osm-ha/bundle.yaml
installers/charm/bundles/osm/bundle.yaml
installers/charm/generate_bundle.py
installers/charm/grafana/.gitignore
installers/charm/grafana/.jujuignore [new file with mode: 0644]
installers/charm/grafana/.yamllint.yaml
installers/charm/grafana/requirements-test.txt [new file with mode: 0644]
installers/charm/grafana/requirements.txt
installers/charm/grafana/src/charm.py
installers/charm/grafana/src/pod_spec.py
installers/charm/grafana/tests/test_charm.py
installers/charm/grafana/tests/test_pod_spec.py
installers/charm/grafana/tox.ini
installers/charm/keystone/.gitignore
installers/charm/keystone/.jujuignore [new file with mode: 0644]
installers/charm/keystone/.yamllint.yaml
installers/charm/keystone/config.yaml
installers/charm/keystone/metadata.yaml
installers/charm/keystone/requirements-test.txt [new file with mode: 0644]
installers/charm/keystone/requirements.txt
installers/charm/keystone/src/charm.py
installers/charm/keystone/tests/__init__.py
installers/charm/keystone/tests/test_charm.py
installers/charm/keystone/tox.ini
installers/charm/lcm/.gitignore
installers/charm/lcm/.jujuignore [new file with mode: 0644]
installers/charm/lcm/.yamllint.yaml
installers/charm/lcm/config.yaml
installers/charm/lcm/metadata.yaml
installers/charm/lcm/requirements-test.txt [new file with mode: 0644]
installers/charm/lcm/requirements.txt
installers/charm/lcm/src/charm.py
installers/charm/lcm/src/pod_spec.py
installers/charm/lcm/tests/test_charm.py
installers/charm/lcm/tox.ini
installers/charm/local_osm_bundle.yaml [new file with mode: 0644]
installers/charm/local_osm_ha_bundle.yaml [new file with mode: 0644]
installers/charm/mon/.gitignore
installers/charm/mon/.jujuignore [new file with mode: 0644]
installers/charm/mon/.yamllint.yaml
installers/charm/mon/config.yaml
installers/charm/mon/requirements-test.txt [new file with mode: 0644]
installers/charm/mon/requirements.txt
installers/charm/mon/src/charm.py
installers/charm/mon/src/pod_spec.py
installers/charm/mon/tests/test_charm.py
installers/charm/mon/tests/test_pod_spec.py
installers/charm/mon/tox.ini
installers/charm/mongodb-exporter/tests/test_charm.py
installers/charm/nbi/.gitignore
installers/charm/nbi/.jujuignore [new file with mode: 0644]
installers/charm/nbi/.yamllint.yaml
installers/charm/nbi/metadata.yaml
installers/charm/nbi/requirements-test.txt [new file with mode: 0644]
installers/charm/nbi/requirements.txt
installers/charm/nbi/src/charm.py
installers/charm/nbi/src/pod_spec.py
installers/charm/nbi/tests/test_charm.py
installers/charm/nbi/tox.ini
installers/charm/ng-ui/.gitignore
installers/charm/ng-ui/.jujuignore [new file with mode: 0644]
installers/charm/ng-ui/.yamllint.yaml
installers/charm/ng-ui/metadata.yaml
installers/charm/ng-ui/requirements-test.txt [new file with mode: 0644]
installers/charm/ng-ui/requirements.txt
installers/charm/ng-ui/src/charm.py
installers/charm/ng-ui/src/pod_spec.py
installers/charm/ng-ui/tests/__init__.py
installers/charm/ng-ui/tests/test_charm.py
installers/charm/ng-ui/tox.ini
installers/charm/pla/.gitignore
installers/charm/pla/.jujuignore [new file with mode: 0644]
installers/charm/pla/.yamllint.yaml
installers/charm/pla/config.yaml
installers/charm/pla/metadata.yaml
installers/charm/pla/requirements-test.txt [new file with mode: 0644]
installers/charm/pla/requirements.txt
installers/charm/pla/src/charm.py
installers/charm/pla/tests/__init__.py
installers/charm/pla/tests/test_charm.py
installers/charm/pla/tox.ini
installers/charm/pol/.gitignore
installers/charm/pol/.jujuignore [new file with mode: 0644]
installers/charm/pol/.yamllint.yaml
installers/charm/pol/requirements-test.txt [new file with mode: 0644]
installers/charm/pol/requirements.txt
installers/charm/pol/src/charm.py
installers/charm/pol/src/pod_spec.py
installers/charm/pol/tests/test_charm.py
installers/charm/pol/tox.ini
installers/charm/prometheus/.gitignore
installers/charm/prometheus/.jujuignore [new file with mode: 0644]
installers/charm/prometheus/.yamllint.yaml
installers/charm/prometheus/config.yaml
installers/charm/prometheus/metadata.yaml
installers/charm/prometheus/requirements-test.txt [new file with mode: 0644]
installers/charm/prometheus/requirements.txt
installers/charm/prometheus/src/charm.py
installers/charm/prometheus/tests/test_charm.py
installers/charm/prometheus/tests/test_pod_spec.py
installers/charm/prometheus/tox.ini
installers/charm/release_edge.sh
installers/charm/ro/.gitignore
installers/charm/ro/.jujuignore [new file with mode: 0644]
installers/charm/ro/.yamllint.yaml
installers/charm/ro/metadata.yaml
installers/charm/ro/requirements-test.txt [new file with mode: 0644]
installers/charm/ro/requirements.txt
installers/charm/ro/src/charm.py
installers/charm/ro/src/pod_spec.py
installers/charm/ro/tests/test_charm.py
installers/charm/ro/tox.ini
installers/charmed_install.sh