Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy an index or migrate between clusters #25

Merged
merged 5 commits into from
Oct 24, 2024
Merged

Conversation

sylvaingaudan
Copy link
Member

@sylvaingaudan sylvaingaudan commented Oct 24, 2024

Add two commands on indices :

  • clone: this clones an index on a same ES cluster, with a different index name
  • migrate this copy the mapping and data from an index on the cluster to another cluster, with a same or different index name

Test added for copy, not clone (don't know for now how to test with current stack).

@sylvaingaudan sylvaingaudan changed the title copy an index or migrate between clusters WIP copy an index or migrate between clusters Oct 24, 2024
@sylvaingaudan sylvaingaudan changed the title WIP copy an index or migrate between clusters copy an index or migrate between clusters Oct 24, 2024
arlas/cli/service.py Show resolved Hide resolved
@sylvaingaudan sylvaingaudan self-assigned this Oct 24, 2024
arlas/cli/index.py Outdated Show resolved Hide resolved
arlas/cli/index.py Outdated Show resolved Hide resolved
arlas/cli/index.py Outdated Show resolved Hide resolved
arlas/cli/service.py Outdated Show resolved Hide resolved
@sylvaingaudan sylvaingaudan merged commit 2ac0201 into master Oct 24, 2024
1 check passed
@@ -39,8 +39,8 @@ def describe(

@indices.command(help="Clone an index and set its name")
def clone(
index: str = typer.Argument(help="index's name"),
name: str = typer.Argument(help="Cloned index's name")
index: str = typer.Argument(help="Source index name"),
Copy link
Contributor

@WilliGautier WilliGautier Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry i meant mainly the variable name, not only the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants