Feature 10981: fix bug in AlertMgr installation 02/13302/1
authoraguilard <e.dah.tid@telefonica.com>
Thu, 27 Apr 2023 09:47:27 +0000 (09:47 +0000)
committeraguilard <e.dah.tid@telefonica.com>
Thu, 27 Apr 2023 09:47:27 +0000 (09:47 +0000)
Change-Id: I83fd859d14fc64dc2b2e3328ce79577fffd619ce
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
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