File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -371,12 +371,13 @@ versionstring="$(get_helm_versionstring "$KUBE_PROM_STACK_CHART_VERSION")"
371
371
log_debug " Installing Helm chart from artifact [$chart2install ]"
372
372
373
373
# Alerts
374
- INCLUDED_ALERTS_DIR=" monitoring/alerting/rules"
375
- if [ -d " $INCLUDED_ALERTS_DIR " ]; then
374
+ if [ -d " monitoring/alerting/rules" ]; then
376
375
log_verbose " Creating Grafana alert rules ConfigMap"
377
376
378
377
# Start with required file
379
- CM_ARGS=(--from-file=" $INCLUDED_ALERTS_DIR " )
378
+ CM_ARGS=(--from-file=" monitoring/alerting/rules" )
379
+
380
+ CUSTOM_ALERT_CONFIG_DIR=" $USER_DIR /monitoring/alerting/"
380
381
381
382
# Add optional custom directory if it exists
382
383
if [ -d " $CUSTOM_ALERT_CONFIG_DIR " ]; then
@@ -392,7 +393,7 @@ if [ -d "$INCLUDED_ALERTS_DIR" ]; then
392
393
-n " $MON_NS " \
393
394
--dry-run=client -o yaml | kubectl apply -f -
394
395
else
395
- log_debug " No alert rules file found at '$INCLUDED_ALERTS_DIR '"
396
+ log_debug " No alert rules file found at 'monitoring/alerting/rules '"
396
397
fi
397
398
398
399
# shellcheck disable=SC2086
You can’t perform that action at this time.
0 commit comments