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>
diff --git a/installers/charm/build.sh b/installers/charm/build.sh
index b5c0c0b..e7649d0 100755
--- a/installers/charm/build.sh
+++ b/installers/charm/build.sh
@@ -17,21 +17,29 @@
cd $1 && tox -e build && cd ..
}
-build 'lcm-k8s'
-build 'mon-k8s'
-build 'nbi-k8s'
-build 'pol-k8s'
-build 'ro-k8s'
+# reactive_charms=""
+# for charm_directory in $reactive_charms; do
+# echo "Building charm $charm_directory..."
+# cd $charm_directory
+# charmcraft build
+# cd ..
+# done
+
+# build 'lcm-k8s'
+# build 'mon-k8s'
+# build 'nbi-k8s'
+# build 'pol-k8s'
+# build 'ro-k8s'
# build 'ui-k8s'
-charms="nbi pla pol mon lcm ng-ui keystone"
+charms="ro nbi pla pol mon lcm ng-ui keystone grafana prometheus keystone mariadb-k8s mongodb-k8s zookeeper-k8s kafka-k8s"
if [ -z `which charmcraft` ]; then
- sudo snap install charmcraft --beta
+ sudo snap install charmcraft --edge
fi
for charm_directory in $charms; do
echo "Building charm $charm_directory..."
- cd $charm_directory
- charmcraft build
- cd ..
+ # cd $charm_directory
+ build $charm_directory
+ # cd ..
done