Skip to content

Commit c63002b

Browse files
authored
[FIX] Correct handling of unavailable API endpoint in deploy_opensearch_content.sh (#785)
1 parent bbb8b17 commit c63002b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SAS Viya Monitoring for Kubernetes
22
## Unreleased
33
* **Logging**
4+
* [FIX] Corrected handling of unavailable API endpoint in deploy_opensearch_content.sh
45
* [FIX] Log messages from Prometheus Operator pod redirected to OpenSearch viya_ops-* (rather than viya_logs-*) index
56
* [UPGRADE] OpenSearch and OpenSearch Dashboards upgraded from 2.19.2 to 2.19.3
67
* [UPGRADE] OpenSearch Helm chart upgraded from 2.34.0 to 2.35.0.

logging/bin/deploy_opensearch_content.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ fi
2323
log_info "Loading Content into OpenSearch"
2424

2525
# temp file used to capture command output
26+
# shellcheck disable=SC2034
2627
tmpfile=$TMP_DIR/output.txt
2728

28-
set -e
29-
3029
# check for pre-reqs
3130

3231
# Confirm namespace exists
@@ -169,6 +168,8 @@ function add_ism_template {
169168
fi
170169
}
171170

171+
set -e
172+
172173
LOG_RETENTION_PERIOD="${LOG_RETENTION_PERIOD:-3}"
173174
set_retention_period viya_logs_idxmgmt_policy LOG_RETENTION_PERIOD
174175
add_ism_template "viya_logs_idxmgmt_policy" "viya_logs-*" 100

0 commit comments

Comments
 (0)