mirror of
https://github.com/valitydev/curator-opensearch.git
synced 2024-11-06 02:05:19 +00:00
add github workflows and fix breaking changes (#1)
This commit is contained in:
parent
ff352cf14f
commit
9f0095ab2b
20
.github/workflows/docker-build.yml
vendored
Normal file
20
.github/workflows/docker-build.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Build and publish Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
|
||||
jobs:
|
||||
build-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: valitydev/action-deploy-docker@v2
|
||||
with:
|
||||
registry-username: ${{ github.actor }}
|
||||
registry-access-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
platforms: linux/amd64,linux/arm64
|
@ -333,7 +333,7 @@ class Close(object):
|
||||
)
|
||||
if not self.skip_flush:
|
||||
try:
|
||||
self.client.indices.flush_synced(index=lst_as_csv, ignore_unavailable=True)
|
||||
self.client.indices.flush(index=lst_as_csv, ignore_unavailable=True, force=True)
|
||||
except ConflictError as err:
|
||||
if not self.ignore_sync_failures:
|
||||
raise ConflictError(err.status_code, err.error, err.info)
|
||||
|
12
setup.py
12
setup.py
@ -55,17 +55,17 @@ try:
|
||||
curator_exe = Executable(
|
||||
"run_curator.py",
|
||||
base=base,
|
||||
targetName = "curator",
|
||||
target_name = "curator",
|
||||
)
|
||||
curator_cli_exe = Executable(
|
||||
"run_singleton.py",
|
||||
base=base,
|
||||
targetName = "curator_cli",
|
||||
target_name = "curator_cli",
|
||||
)
|
||||
repomgr_exe = Executable(
|
||||
"run_es_repo_mgr.py",
|
||||
base=base,
|
||||
targetName = "es_repo_mgr",
|
||||
target_name = "es_repo_mgr",
|
||||
)
|
||||
build_dict = {
|
||||
"build_exe": dict(
|
||||
@ -78,19 +78,19 @@ try:
|
||||
curator_exe = Executable(
|
||||
"run_curator.py",
|
||||
base=base,
|
||||
targetName = "curator.exe",
|
||||
target_name = "curator.exe",
|
||||
icon = icon
|
||||
)
|
||||
curator_cli_exe = Executable(
|
||||
"run_singleton.py",
|
||||
base=base,
|
||||
targetName = "curator_cli.exe",
|
||||
target_name = "curator_cli.exe",
|
||||
icon = icon
|
||||
)
|
||||
repomgr_exe = Executable(
|
||||
"run_es_repo_mgr.py",
|
||||
base=base,
|
||||
targetName = "es_repo_mgr.exe",
|
||||
target_name = "es_repo_mgr.exe",
|
||||
icon = icon
|
||||
)
|
||||
|
||||
|
@ -176,11 +176,7 @@ snap_body = {
|
||||
}
|
||||
verified_nodes = {'nodes': {'nodeid1': {'name': 'node1'}, 'nodeid2': {'name': 'node2'}}}
|
||||
synced_pass = {
|
||||
"_shards":{"total":1,"successful":1,"failed":0},
|
||||
"index_name":{
|
||||
"total":1,"successful":1,"failed":0,
|
||||
"failures":[],
|
||||
}
|
||||
"_shards":{"total":1,"successful":1,"failed":0}
|
||||
}
|
||||
synced_fail = {
|
||||
"_shards":{"total":1,"successful":0,"failed":1},
|
||||
|
Loading…
Reference in New Issue
Block a user