-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HAMR-164: Add migrate command (#287)
* Add migrate command
- Loading branch information
1 parent
dfdb3de
commit 2a55daf
Showing
12 changed files
with
9,749 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed | ||
# under the 3-clause BSD style license (see LICENSE). | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2019 Datadog, Inc. | ||
|
||
from click import command | ||
|
||
from datadog_sync.commands.shared.options import ( | ||
common_options, | ||
destination_auth_options, | ||
diffs_common_options, | ||
source_auth_options, | ||
sync_common_options, | ||
) | ||
from datadog_sync.commands.shared.utils import run_cmd | ||
from datadog_sync.constants import Command | ||
|
||
|
||
@command(Command.MIGRATE.value, short_help="Migrate Datadog resources from one datacenter to another.") | ||
@source_auth_options | ||
@destination_auth_options | ||
@common_options | ||
@diffs_common_options | ||
@sync_common_options | ||
def migrate(**kwargs): | ||
"""Migrate Datadog resources from one datqaacenter to another.""" | ||
run_cmd(Command.MIGRATE, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ class Command(Enum): | |
IMPORT = "import" | ||
SYNC = "sync" | ||
DIFFS = "diffs" | ||
MIGRATE = "migrate" | ||
|
||
|
||
# Origin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/integration/cassettes/test_cli/TestCli.test_migrate.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2024-09-27T13:50:02.487728-04:00 |
Oops, something went wrong.