Feature 10981: fix bug in AlertMgr installation
[osm/devops.git] / installers / install_ngsa.sh
index b90c3dc..151b686 100755 (executable)
@@ -62,6 +62,9 @@ function install_prometheus_pushgateway() {
 # Install Prometheus AlertManager helm chart
 function install_prometheus_alertmanager() {
     [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
+    # copy alertmanager-values.yaml to the destination folder
+    sudo mkdir -p ${OSM_HELM_WORK_DIR}
+    sudo cp ${OSM_DEVOPS}/installers/helm/values/alertmanager-values.yaml ${OSM_HELM_WORK_DIR}
     if ! helm -n osm status alertmanager 2> /dev/null ; then
         # if it does not exist, install
         helm repo add prometheus-community https://prometheus-community.github.io/helm-charts