Skip to content

Commit

Permalink
fix: ensure OpenSearch snapshot repos go in specific prefixes within …
Browse files Browse the repository at this point in the history
…bucket (#119)
  • Loading branch information
andrewmooreio authored Dec 5, 2024
1 parent 0fe6c36 commit 650f62d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jobs/opensearch-backup/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ data:
\"settings\": {
\"bucket\": \"$S3_BUCKET_NAME\",
\"region\": \"$REGION\",
\"role_arn\": \"$SNAPSHOT_ROLE_ARN\"
\"role_arn\": \"$SNAPSHOT_ROLE_ARN\",
\"base_path\": \"$SNAPSHOT_REPOSITORY\"
}
}")
if echo "$RESPONSE" | grep -q '"acknowledged":true'; then
Expand Down
3 changes: 2 additions & 1 deletion jobs/refresh-opensearch/templates/create-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ spec:
\"settings\": {
\"bucket\": \"$S3_BUCKET_NAME\",
\"region\": \"$REGION\",
\"role_arn\": \"$SNAPSHOT_ROLE_ARN\"
\"role_arn\": \"$SNAPSHOT_ROLE_ARN\",
\"base_path\": \"$SNAPSHOT_REPOSITORY\"
}
}")
if echo "$RESPONSE" | grep -q '"acknowledged":true'; then
Expand Down

0 comments on commit 650f62d

Please sign in to comment.